Skip to content

Commit

Permalink
ci: tag feature branch release images
Browse files Browse the repository at this point in the history
  • Loading branch information
jennifer-richards committed Nov 21, 2024
1 parent a9e5057 commit 3074be8
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,10 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Add feature-latest tag
if: ${{ startsWith(github.ref_name, 'feat/') }}
run: echo "FEATURE_LATEST_TAG=$(echo $GITHUB_REF_NAME | tr / -)" >> $GITHUB_ENV

- name: Build Images
uses: docker/build-push-action@v6
env:
Expand All @@ -265,7 +269,9 @@ jobs:
file: dev/build/Dockerfile
platforms: ${{ github.event.inputs.skiparm == 'true' && 'linux/amd64' || 'linux/amd64,linux/arm64' }}
push: true
tags: ghcr.io/ietf-tools/datatracker:${{ env.PKG_VERSION }}

This comment was marked as abuse.

Copy link
@LiamM3dina

LiamM3dina Jan 5, 2025

bitch got hackt

This comment was marked as abuse.

Copy link
@LiamM3dina

LiamM3dina Jan 5, 2025

stop

tags: |
ghcr.io/ietf-tools/datatracker:${{ env.PKG_VERSION }}
${{ env.FEATURE_LATEST_TAG && format('ghcr.io/ietf-tools/datatracker:{0}-latest', env.FEATURE_LATEST_TAG) || null }}
cache-from: type=gha
cache-to: type=gha,mode=max

Expand Down

1 comment on commit 3074be8

@LiamM3dina

This comment was marked as abuse.

Please sign in to comment.