fix release build

This commit is contained in:
meeb 2021-09-20 17:27:39 +10:00
parent ff4be7cfa0
commit e8d75a79c5
1 changed files with 6 additions and 3 deletions

View File

@ -13,6 +13,10 @@ jobs:
steps: steps:
- name: Set up QEMU - name: Set up QEMU
uses: docker/setup-qemu-action@v1 uses: docker/setup-qemu-action@v1
- name: Get tag
id: tag
uses: dawidd6/action-get-tag@v1
- uses: docker/build-push-action@v2
- name: Set up Docker Buildx - name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1 uses: docker/setup-buildx-action@v1
- name: Log into GitHub Container Registry - name: Log into GitHub Container Registry
@ -22,9 +26,8 @@ jobs:
with: with:
platforms: linux/amd64 platforms: linux/amd64
push: true push: true
tags: ghcr.io/meeb/${{ env.IMAGE_NAME }}:${{ env.RELEASE_TAG }} tags: ghcr.io/meeb/${{ env.IMAGE_NAME }}:${{ steps.tag.outputs.tag }}
cache-from: type=registry,ref=ghcr.io/meeb/${{ env.IMAGE_NAME }}:${{ env.RELEASE_TAG }} cache-from: type=registry,ref=ghcr.io/meeb/${{ env.IMAGE_NAME }}:${{ steps.tag.outputs.tag }}
cache-to: type=inline cache-to: type=inline
build-args: | build-args: |
IMAGE_NAME=${{ env.IMAGE_NAME }} IMAGE_NAME=${{ env.IMAGE_NAME }}
RELEASE_TAG=${{ github.event.release.tag_name }}