Skip to content

Commit

Permalink
Move image building to test.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
vejol committed Mar 6, 2024
1 parent c876f29 commit 918aff6
Showing 1 changed file with 4 additions and 26 deletions.
30 changes: 4 additions & 26 deletions .github/workflows/staging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,42 +15,20 @@ jobs:
needs: test

steps:
- uses: actions/checkout@v3

- name: Build backend
id: build-backend
uses: redhat-actions/buildah-build@v2
with:
image: backend
tags: latest ${{ github.sha }}
context: backend/
containerfiles: |
backend/Dockerfile
- name: Build frontend
id: build-frontend
uses: redhat-actions/buildah-build@v2
with:
image: frontend
tags: latest ${{ github.sha }}
context: frontend/
containerfiles: |
frontend/Dockerfile
- name: Push backend to quay.io
uses: redhat-actions/push-to-registry@v2
with:
image: ${{ steps.build-backend.outputs.image }}
tags: ${{ steps.build-backend.outputs.tags }}
image: ${{ needs.test.steps.build-backend.outputs.image }}
tags: ${{ needs.test.steps.build-backend.outputs.tags }}
registry: quay.io/ohtuilmo
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_PASSWORD }}

- name: Push frontend to quay.io
uses: redhat-actions/push-to-registry@v2
with:
image: ${{ steps.build-frontend.outputs.image }}
tags: ${{ steps.build-frontend.outputs.tags }}
image: ${{ needs.test.steps.build-frontend.outputs.image }}
tags: ${{ needs.test.steps.build-frontend.outputs.tags }}
registry: quay.io/ohtuilmo
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_PASSWORD }}

0 comments on commit 918aff6

Please sign in to comment.