Skip to content

Commit

Permalink
Test workers build/push
Browse files Browse the repository at this point in the history
  • Loading branch information
AndyRae committed Nov 3, 2024
1 parent 404284c commit 0cd8f91
Showing 1 changed file with 27 additions and 28 deletions.
55 changes: 27 additions & 28 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,36 +36,36 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

# Tag and build frontend
- name: Extract frontend Docker metadata
id: frontend_meta
uses: docker/[email protected]
with:
images: ${{ env.registry }}/${{ env.repo-owner }}/${{ env.app-name }}/frontend
# # Tag and build frontend
# - name: Extract frontend Docker metadata
# id: frontend_meta
# uses: docker/[email protected]
# with:
# images: ${{ env.registry }}/${{ env.repo-owner }}/${{ env.app-name }}/frontend

- name: Build and push frontend image
uses: docker/[email protected]
with:
context: ./app/next-client-app
file: ./app/next-client-app/Dockerfile
push: true
platforms: linux/amd64,linux/arm64
tags: ${{ steps.frontend_meta.outputs.tags }}
# - name: Build and push frontend image
# uses: docker/[email protected]
# with:
# context: ./app/next-client-app
# file: ./app/next-client-app/Dockerfile
# push: true
# platforms: linux/amd64,linux/arm64
# tags: ${{ steps.frontend_meta.outputs.tags }}

# Tag and for backend
- name: Extract backend Docker metadata
id: backend_meta
uses: docker/[email protected]
with:
images: ${{ env.registry }}/${{ env.repo-owner }}/${{ env.app-name }}/backend
# # Tag and for backend
# - name: Extract backend Docker metadata
# id: backend_meta
# uses: docker/[email protected]
# with:
# images: ${{ env.registry }}/${{ env.repo-owner }}/${{ env.app-name }}/backend

- name: Build and push backend image
uses: docker/[email protected]
with:
file: ./app/Dockerfile.deploy
push: true
platforms: linux/amd64,linux/arm64
tags: ${{ steps.backend_meta.outputs.tags }}
# - name: Build and push backend image
# uses: docker/[email protected]
# with:
# file: ./app/Dockerfile.deploy
# push: true
# platforms: linux/amd64,linux/arm64
# tags: ${{ steps.backend_meta.outputs.tags }}

# Tag and for workers
- name: Extract workers Docker metadata
Expand All @@ -77,7 +77,6 @@ jobs:
- name: Build and push workers image
uses: docker/[email protected]
with:
context: ./app/workers
file: ./app/workers/Dockerfile
push: true
platforms: linux/amd64,linux/arm64
Expand Down

0 comments on commit 0cd8f91

Please sign in to comment.