From ac0701b0db918887f16453f3eb95fdba0fe8e8e6 Mon Sep 17 00:00:00 2001 From: Sion <1691676+green-leader@users.noreply.github.com> Date: Wed, 24 May 2023 15:31:55 +0000 Subject: [PATCH] [ci] removed prep image step I believe what it was doing could also be done more simpley via env variables. It was also depreciated. --- .github/workflows/build_latest.yml | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/.github/workflows/build_latest.yml b/.github/workflows/build_latest.yml index 9ace9ef..5d25942 100644 --- a/.github/workflows/build_latest.yml +++ b/.github/workflows/build_latest.yml @@ -6,6 +6,10 @@ on: branches: - main +env: + DOCKER_IMAGE: ghcr.io/${{ github.repository_owner }}/borg-server + TAG: ${DOCKER_IMAGE}:latest + jobs: docker: runs-on: ubuntu-latest @@ -13,21 +17,10 @@ jobs: - name: Checkout uses: actions/checkout@v3 - - name: Prepare Image Build - id: prep_image - run: | - DOCKER_IMAGE=ghcr.io/${{ github.repository_owner }}/borg-server - TAG="${DOCKER_IMAGE}:latest" - - # Set output parameters. - echo ::set-output name=tags::${TAG} - echo ::set-output name=docker_image::${DOCKER_IMAGE} - - name: Set up QEMU uses: docker/setup-qemu-action@master with: platforms: linux/amd64,linux/arm64 -# platforms: all - name: Set up Docker Buildx id: buildx @@ -38,7 +31,7 @@ jobs: uses: docker/login-action@v2 with: registry: ghcr.io - username: ${{ github.actor }} + username: ${{ github.repository_owner }} password: ${{ secrets.GITHUB_TOKEN }} - name: Build Image @@ -48,4 +41,4 @@ jobs: context: . platforms: linux/amd64,linux/arm64 push: true - tags: ${{ steps.prep_image.outputs.tags }} + tags: "$TAG"