From 317f0e551f8c9dc99705e133d9b1a17f762b1cd1 Mon Sep 17 00:00:00 2001 From: Michael <12646562+mbround18@users.noreply.github.com> Date: Fri, 26 Jan 2024 09:14:59 -0800 Subject: [PATCH] Update release.yaml --- .github/workflows/release.yaml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 854b68f..174d624 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -3,6 +3,8 @@ on: push: tags: - '*' +env: + IMAGE_NAME: mbround18/palworld-docker jobs: release: @@ -27,9 +29,9 @@ jobs: id: meta uses: docker/metadata-action@v5 with: - images: name/app + images: ${{ env.IMAGE_NAME }} - - name: Build Palworld + - name: Build ${{ env.IMAGE_NAME }} id: docker_build uses: docker/build-push-action@v5 with: @@ -37,8 +39,8 @@ jobs: push: ${{ github.event_name != 'pull_request' }} tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} - cache-from: type=registry,ref=mbround18/palworld-docker:buildcache - cache-to: type=registry,ref=mbround18/palworld-docker:buildcache,mode=max + cache-from: type=registry,ref=${{ env.IMAGE_NAME }}:buildcache + cache-to: type=registry,ref=${{ env.IMAGE_NAME }}:buildcache,mode=max build-args: | "GITHUB_SHA=${GITHUB_SHA}" "GITHUB_REF=${GITHUB_REF}"