Skip to content

Commit

Permalink
impr: fixing push images to docker hub
Browse files Browse the repository at this point in the history
  • Loading branch information
tiagobento10 committed May 18, 2024
1 parent 23d0bfa commit 495e0c4
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,12 @@ jobs:
docker build -t authorization_server authorization_server/
docker build -t client client/
- name: Create Docker tags
run: |
docker tag resource_server $DOCKER_REPOSITORY:resource_server_latest
docker tag authorization_server $DOCKER_REPOSITORY:authorization_server_latest
docker tag client $DOCKER_REPOSITORY:client_latest
- name: Login to DockerHub
uses: docker/login-action@v1
with:
Expand All @@ -148,6 +154,6 @@ jobs:

- name: Push Docker images
run: |
docker push $DOCKER_REPOSITORY/resource_server:latest
docker push $DOCKER_REPOSITORY/authorization_server:latest
docker push $DOCKER_REPOSITORY/client:latest
docker push $DOCKER_REPOSITORY:resource_server_latest
docker push $DOCKER_REPOSITORY:authorization_server_latest
docker push $DOCKER_REPOSITORY:client_latest

0 comments on commit 495e0c4

Please sign in to comment.