Skip to content

Commit

Permalink
Build nightly latest & version
Browse files Browse the repository at this point in the history
  • Loading branch information
hsoerensen committed Jan 28, 2024
1 parent c4bcaca commit 7bc841f
Showing 1 changed file with 27 additions and 7 deletions.
34 changes: 27 additions & 7 deletions .github/workflows/docker-schedule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Filter version
id: filter_version
run: |
VERSION=$(echo "${{ steps.get_current_release.outputs.tag_name }}" | sed 's/^v//')
echo "VERSION=$VERSION" >> $GITHUB_ENV
- name: Log in to the Container registry
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
with:
Expand All @@ -48,16 +54,30 @@ jobs:
images: |
ghcr.io/${{ github.repository }}
tags: |
type=semver,pattern={{version}}
type=raw,value=latest
type=edge,enable=true,priority=700,prefix=,suffix=,branch=$repo.default_branch
- name: Build and push Docker images latest
uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671
with:
context: .
platforms: linux/amd64,linux/arm64
build-args: |
BASE_ALGORAND_VERSION=latest
push: true
tags: ghcr.io/voinetwork/docker-participation-node:latest
labels: |
${{ steps.meta.outputs.labels }}
org.opencontainers.image.version: latest
- name: Build and push Docker images
- name: Build and push Docker images for current release
uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671
with:
context: .
platforms: linux/amd64,linux/arm64
build-args: |
BASE_ALGORAND_VERSION=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.version'] }}
push: false
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
BASE_ALGORAND_VERSION=${{ env.VERSION }}-stable
push: true
tags: ghcr.io/voinetwork/docker-participation-node:${{ env.VERSION }}
labels: |
${{ steps.meta.outputs.labels }}
org.opencontainers.image.version: ${{ env.VERSION }}

0 comments on commit 7bc841f

Please sign in to comment.