From cfbc9a3bf24c07b15b99b72b3e86c24458dde095 Mon Sep 17 00:00:00 2001 From: Sven Nierlein Date: Thu, 1 Feb 2024 21:01:23 +0100 Subject: [PATCH] actions: update release jobs --- .github/workflows/releases.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/releases.yml b/.github/workflows/releases.yml index 7ee80d66..51fa2022 100644 --- a/.github/workflows/releases.yml +++ b/.github/workflows/releases.yml @@ -50,12 +50,15 @@ jobs: with: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} - - name: Build/Push to Docker Hub + - name: Push to Docker Hub uses: docker/build-push-action@v5 with: push: true file: Dockerfile.${{ matrix.target }} - tags: consol/${{ matrix.target }}:${{ env.BRANCH_NAME }}, consol/${{ matrix.target }}:latest + build-args: OMD_VERSION=${{ env.BRANCH_NAME }} + tags: | + consol/${{ matrix.target }}:${{ env.BRANCH_NAME }} + consol/${{ matrix.target }}:latest platforms: linux/amd64,linux/arm64 - name: Log in to GitHub Docker Registry uses: docker/login-action@v3 @@ -68,5 +71,7 @@ jobs: with: push: true file: Dockerfile.${{ matrix.target }} - tags: ghcr.io/consol/docker-headless-vnc-container/${{ matrix.target }}:${{ env.BRANCH_NAME }}, docker.pkg.github.com/consol/docker-headless-vnc-container/${{ matrix.target }}:latest + tags: | + ghcr.io/consol/docker-headless-vnc-container/${{ matrix.target }}:${{ env.BRANCH_NAME }} + ghcr.io/consol/docker-headless-vnc-container/${{ matrix.target }}:latest platforms: linux/amd64,linux/arm64