Refactor to Kubernetes and Helm setup #1
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # .github/workflows/ci-build.yml | |
| name: CI – Build & Push PR Images | |
| on: | |
| pull_request: | |
| branches: [ listOfMed ] | |
| permissions: | |
| contents: read | |
| packages: write | |
| jobs: | |
| build-and-push: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v3 | |
| - name: Log in to registry | |
| uses: docker/login-action@v2 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.repository_owner }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Build & push backend | |
| uses: docker/build-push-action@v3 | |
| with: | |
| context: server | |
| file: server/Dockerfile.prod | |
| push: true | |
| tags: | | |
| ghcr.io/${{ github.repository_owner }}/balancer-backend:pr-${{ github.event.number }} | |
| ghcr.io/${{ github.repository_owner }}/balancer-backend:pr-${{ github.event.number }}-latest | |
| - name: Build & push frontend | |
| uses: docker/build-push-action@v3 | |
| with: | |
| context: frontend | |
| file: frontend/Dockerfile | |
| push: true | |
| tags: | | |
| ghcr.io/${{ github.repository_owner }}/balancer-frontend:pr-${{ github.event.number }} | |
| ghcr.io/${{ github.repository_owner }}/balancer-frontend:pr-${{ github.event.number }}-latest |