Skip to content

Commit

Permalink
fix issue with gchr tags
Browse files Browse the repository at this point in the history
  • Loading branch information
gpmayorga committed Jul 9, 2024
1 parent cfa9880 commit 6472be0
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/delete_untagged.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Docker Build
on:
pull_request:
paths:
- ".github/workflows/delete_untagged.yml"
jobs:
delete_untagged:
permissions:
contents: read
packages: write
# id-token: write
steps:
- name: Delete untagged ghcr
uses: Chizkiyahu/delete-untagged-ghcr-action@v3
with:
# Personal access token (PAT) used to fetch the repository. The PAT is configured
# with the local git config, which enables your scripts to run authenticated git
# commands. The post-job step removes the PAT.
# needs delete:packages permissions
# required: true
# [Learn more about creating and using encrypted secrets](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/creating-and-using-encrypted-secrets)
token: ${{ secrets.GITHUB_TOKEN }}
# Repository name or name with owner
# Delete only from repository name
# Default: ${{ github.repository }}
repository: 'centrifuge-chain'
# 'The repository owner name'
# Default: ${{ github.repository_owner }}
# repository_owner: ''
# 'The package names'
# Delete only from comma separated package names
# required: false
package_name: 'centrifuge-chain'
# Delete only package versions without tag
# required: false
# Default: true
# choices: true, false
untagged_only: true
# Except untagged multiplatform packages from deletion
# only for untagged_only=true
# needs docker installed
except_untagged_multiplatform: false
# the owner type
# required: true
# choices: org, user
owner_type: 'org'
1 change: 1 addition & 0 deletions .github/workflows/build-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ jobs:
- name: Build and push centrifugeio/centrifuge-chain
uses: docker/build-push-action@2cdde995de11925a030ce8070c3d77a52ffcf1c0 #v5.3.0
with:
provenance: false # Solves untagged containers getting into the GH registry https://github.com/docker/build-push-action/issues/894
context: .
file: ./docker/centrifuge-chain/Dockerfile
build-args: |
Expand Down

0 comments on commit 6472be0

Please sign in to comment.