diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index de405dd..e736a17 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -57,18 +57,26 @@ jobs: DATABASE_URL: "postgresql://test:test@localhost:5432/test" JWT_SECRET: "build" + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + + - 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.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} - - name: Build Docker image - run: docker buildx build --platform linux/amd64,linux/arm64 -t - openreception/open-reception:${{ github.ref_name }} . - - - name: Push Docker images - run: npm run docker:build-and-push + - name: Build and push + uses: docker/build-push-action@v6 + with: + push: true + platforms: linux/amd64,linux/arm64 + tags: | + openreception/open-reception:latest + openreception/open-reception:${{ github.ref_name }} - name: Commit and push version update run: |