From 0bd63973d8da054d81e030a5aa9911d1ac6c8cec Mon Sep 17 00:00:00 2001 From: Abderrahmane Smimite Date: Mon, 8 Apr 2024 20:53:11 +0200 Subject: [PATCH] Build and Push to ghcr --- .github/workflows/docker-build-and-push.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docker-build-and-push.yml b/.github/workflows/docker-build-and-push.yml index e1871f8fb..9cfa90234 100644 --- a/.github/workflows/docker-build-and-push.yml +++ b/.github/workflows/docker-build-and-push.yml @@ -15,6 +15,12 @@ jobs: - name: Checkout Repository uses: actions/checkout@v4 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + - name: Log in to GitHub Container Registry uses: docker/login-action@v3 with: @@ -29,6 +35,7 @@ jobs: file: ./backend/Dockerfile push: true tags: ghcr.io/${{ github.repository }}/backend:latest + platforms: linux/amd64,linux/arm64,darwin/amd64,darwin/arm64 - name: Build and Push Frontend Docker Image uses: docker/build-push-action@v5 @@ -37,6 +44,7 @@ jobs: file: ./frontend/Dockerfile push: true tags: ghcr.io/${{ github.repository }}/frontend:latest + platforms: linux/amd64,linux/arm64,darwin/amd64,darwin/arm64 - name: Set Backend Package Visibility to Public run: | @@ -54,4 +62,4 @@ jobs: -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \ -H "Accept: application/vnd.github+json" \ "https://api.github.com/user/packages/container/${{ github.repository }}/frontend/visibility" \ - -d '{"visibility":"public"}' \ No newline at end of file + -d '{"visibility":"public"}'