Skip to content

Commit

Permalink
impr: adding deploy step
Browse files Browse the repository at this point in the history
  • Loading branch information
tiagobento10 committed May 18, 2024
1 parent b9dc69f commit 61ce8b2
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,3 +93,40 @@ jobs:
run: mvn -B test --file resource_server/pom.xml
- name: Run Tests for Authorization Server
run: mvn -B test --file authorization_server/pom.xml

deploy:
runs-on: ubuntu-latest
needs: test

steps:
- uses: actions/checkout@v2

- name: Download Resource Server Artifact
uses: actions/download-artifact@v3
with:
name: resource-server-artifact
path: resource_server/target

- name: Download Authorization Server Artifact
uses: actions/download-artifact@v3
with:
name: authorization-server-artifact
path: authorization_server/target

- name: Download Frontend Artifact
uses: actions/download-artifact@v3
with:
name: frontend-artifact
path: client/dist

- name: Build Docker images
run: |
docker build -t resource_server resource_server/
docker build -t authorization_server authorization_server/
docker build -t client client/
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

0 comments on commit 61ce8b2

Please sign in to comment.