Simplify workflow with hardcoded tags to test Docker push
This commit is contained in:
parent
3eec776fa6
commit
516443ed9e
1 changed files with 4 additions and 4 deletions
8
.github/workflows/push.yml
vendored
8
.github/workflows/push.yml
vendored
|
|
@ -50,15 +50,15 @@ jobs:
|
|||
context: .
|
||||
file: ./Dockerfile
|
||||
push: true
|
||||
tags: ${{ steps.meta.outputs.tags }}
|
||||
tags: |
|
||||
ghcr.io/${{ github.repository_owner }}/lightning-pub:latest
|
||||
ghcr.io/${{ github.repository_owner }}/lightning-pub:master
|
||||
labels: ${{ steps.meta.outputs.labels }}
|
||||
|
||||
- name: Capture image digest
|
||||
id: capture-digest
|
||||
run: |
|
||||
# Get the first tag from the metadata output
|
||||
FIRST_TAG=$(echo "${{ steps.meta.outputs.tags }}" | head -n1)
|
||||
DIGEST=$(docker inspect --format='{{index .RepoDigests 0}}' $FIRST_TAG | cut -d'@' -f2)
|
||||
DIGEST=$(docker inspect --format='{{index .RepoDigests 0}}' ghcr.io/${{ github.repository_owner }}/lightning-pub:latest | cut -d'@' -f2)
|
||||
echo "Raw Digest is $DIGEST"
|
||||
echo "digest=$DIGEST" >> $GITHUB_OUTPUT
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue