Dev Docker Build (Manual) #6
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
| name: Dev Docker Build (Manual) | |
| on: | |
| workflow_dispatch: | |
| env: | |
| DOCKERHUB_BACKEND_IMAGE: tess1o/geopulse-backend | |
| DOCKERHUB_FRONTEND_IMAGE: tess1o/geopulse-ui | |
| DEV_VERSION: dev | |
| permissions: | |
| contents: read | |
| jobs: | |
| build-frontend-amd64: | |
| name: Build Frontend AMD64 (dev) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Log in to Docker Hub | |
| uses: docker/login-action@v3 | |
| with: | |
| username: ${{ secrets.DOCKERHUB_USERNAME }} | |
| password: ${{ secrets.DOCKERHUB_TOKEN }} | |
| - name: Build and push Frontend AMD64 (dev) | |
| uses: docker/build-push-action@v5 | |
| with: | |
| context: . | |
| file: frontend/Dockerfile | |
| platforms: linux/amd64 | |
| push: true | |
| build-args: | | |
| VERSION=${{ env.DEV_VERSION }} | |
| tags: | | |
| ${{ env.DOCKERHUB_FRONTEND_IMAGE }}:${{ env.DEV_VERSION }} | |
| cache-from: type=gha,scope=dev-frontend-amd64 | |
| cache-to: type=gha,mode=max,scope=dev-frontend-amd64 | |
| build-backend-native-amd64: | |
| name: Build Backend Native AMD64 (dev) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Log in to Docker Hub | |
| uses: docker/login-action@v3 | |
| with: | |
| username: ${{ secrets.DOCKERHUB_USERNAME }} | |
| password: ${{ secrets.DOCKERHUB_TOKEN }} | |
| - name: Build and push Backend Native AMD64 (dev) | |
| uses: docker/build-push-action@v5 | |
| with: | |
| context: . | |
| file: backend/Dockerfile.native | |
| platforms: linux/amd64 | |
| push: true | |
| build-args: | | |
| VERSION=${{ env.DEV_VERSION }}-native | |
| QUARKUS_NATIVE_BUILD_ARGS= | |
| tags: | | |
| ${{ env.DOCKERHUB_BACKEND_IMAGE }}:${{ env.DEV_VERSION }}-native | |
| cache-from: type=gha,scope=dev-backend-native-amd64 | |
| cache-to: type=gha,mode=max,scope=dev-backend-native-amd64 |