Skip to content

Commit

Permalink
impr: adding deploy step including 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 f27045a commit bac5bfe
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,9 @@ jobs:
runs-on: ubuntu-latest
needs: test

env:
DOCKER_REPOSITORY: ${{ secrets.DOCKER_USERNAME }}/desofs2024_m1b_6

steps:
- uses: actions/checkout@v2

Expand Down Expand Up @@ -141,4 +144,13 @@ jobs:
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Push Docker images
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
docker push $DOCKER_REPOSITORY/resource_server:latest
docker push $DOCKER_REPOSITORY/authorization_server:latest
docker push $DOCKER_REPOSITORY/client:latest

0 comments on commit bac5bfe

Please sign in to comment.