Skip to content

Commit

Permalink
ci(chore): add quay expire for none release docker images (#6539)
Browse files Browse the repository at this point in the history
Description
Add quay expire for none release docker images

Motivation and Context
Save store by expiring older test images

How Has This Been Tested?
Built and noted expiry of older images in local fork
  • Loading branch information
leet4tari authored Sep 9, 2024
1 parent 4c246b8 commit ad144f7
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/build_dockers_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ name: Build docker images - workflow_call/on-demand
env:
LAUNCHPAD_REPO: tari-project/tari-launchpad
LAUNCHPAD_BRANCH: main
DAYS_to_EXPIRE: 30

permissions: {}

Expand Down Expand Up @@ -127,6 +128,12 @@ jobs:
echo ${TARI_TARGET_NETWORK}
echo "TARI_TARGET_NETWORK=${TARI_TARGET_NETWORK}" >> $GITHUB_ENV
- name: Setup expiration for none releases
if: ${{ ! startsWith(github.ref, 'refs/tags/v') }}
shell: bash
run: |
echo "EXPIRATION=${{ env.DAYS_to_EXPIRE }}d" >> $GITHUB_ENV
- name: environment setup
shell: bash
run: |
Expand Down Expand Up @@ -198,6 +205,8 @@ jobs:
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=sha
labels: |
quay.expires-after=${{ env.EXPIRATION }}
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
Expand Down

0 comments on commit ad144f7

Please sign in to comment.