Skip to content

Commit

Permalink
GitHub: fix daily docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
guggero committed Jan 20, 2022
1 parent ddaba02 commit 5ead5ec
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,19 +33,23 @@ jobs:
password: ${{ secrets.DOCKER_API_KEY }}

- 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
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
id: docker_build
uses: lightninglabs/gh-actions/[email protected]
with:
push: true
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 }}

- name: Image digest
Expand Down

0 comments on commit 5ead5ec

Please sign in to comment.