Skip to content

Commit

Permalink
chore: fix up ghcr tags (#3438)
Browse files Browse the repository at this point in the history
use `latest` for latest release, `dev` for continuous, and tag dev
builds with `-dev`. also remove the 'master' tag since that's redundant
with `dev`.
  • Loading branch information
charles-cooper committed May 20, 2023
1 parent 870ad49 commit 95bf73f
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/ghcr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,17 +45,21 @@ jobs:
pip install .
echo "VYPER_VERSION=$(PYTHONPATH=. python vyper/cli/vyper_compile.py --version)" >> "$GITHUB_ENV"
- name: generate tag suffix
if: ${{ github.event_name != 'release' }}
run: echo "VERSION_SUFFIX=-dev" >> "$GITHUB_ENV"

- name: Docker meta
id: meta
uses: docker/metadata-action@v4
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
flavor: |
latest=true
tags: |
type=ref,event=branch
type=ref,event=tag
type=raw,value=${{ env.VYPER_VERSION }}
type=raw,value=${{ env.VYPER_VERSION }}${{ env.VERSION_SUFFIX }}
type=raw,value=dev,enable=${{ github.ref == 'refs/heads/master' }}
type=raw,value=latest,enable=${{ github.event_name == 'release' }}
- name: Login to ghcr.io
uses: docker/login-action@v2
Expand Down

0 comments on commit 95bf73f

Please sign in to comment.