GitHub: fix daily docker build
This commit is contained in:
1 file changed
+7
-3
@@ -33,11 +33,15 @@ jobs:
|
|||||||
password: ${{ secrets.DOCKER_API_KEY }}
|
password: ${{ secrets.DOCKER_API_KEY }}
|
||||||
|
|
||||||
- name: Set env
|
- name: Set env
|
||||||
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
|
run: |
|
||||||
|
echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
|
||||||
|
echo "IMAGE_TAG=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Set daily tag
|
- name: Set daily tag
|
||||||
if: github.event.schedule == '0 0 * * *'
|
if: github.event.schedule == '0 0 * * *'
|
||||||
run: echo "RELEASE_VERSION=daily-testing-only" >> $GITHUB_ENV
|
run: |
|
||||||
|
echo "RELEASE_VERSION=master" >> $GITHUB_ENV
|
||||||
|
echo "IMAGE_TAG=daily-testing-only" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Build and push
|
- name: Build and push
|
||||||
id: docker_build
|
id: docker_build
|
||||||
@@ -45,7 +49,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
push: true
|
push: true
|
||||||
platforms: linux/amd64,linux/arm64
|
platforms: linux/amd64,linux/arm64
|
||||||
tags: "${{ env.DOCKER_REPO }}/${{ env.DOCKER_IMAGE }}:${{ env.RELEASE_VERSION }}"
|
tags: "${{ env.DOCKER_REPO }}/${{ env.DOCKER_IMAGE }}:${{ env.IMAGE_TAG }}"
|
||||||
build-args: checkout=${{ env.RELEASE_VERSION }}
|
build-args: checkout=${{ env.RELEASE_VERSION }}
|
||||||
|
|
||||||
- name: Image digest
|
- name: Image digest
|
||||||
|
|||||||
Reference in new issue
Block a user