Migrate tags to variables instead of hard-coded

This commit is contained in:
Seth Simmons
2021-03-24 14:39:23 -04:00
parent fae3fd288b
commit 9a33178794
2 changed files with 8 additions and 8 deletions

View File

@@ -37,10 +37,10 @@ jobs:
with: with:
push: true push: true
tags: | tags: |
ghcr.io/sethsimmons/simple-monerod:latest ghcr.io/${{ github.repository_owner }}/simple-monerod:latest
ghcr.io/sethsimmons/simple-monerod:${{ steps.get_tag.outputs.tag }} ghcr.io/${{ github.repository_owner }}/simple-monerod:${{ steps.get_tag.outputs.tag }}
sethsimmons/simple-monerod:latest ${{ secrets.DOCKER_USERNAME }}/simple-monerod:latest
sethsimmons/simple-monerod:${{ steps.get_tag.outputs.tag }} ${{ secrets.DOCKER_USERNAME }}/simple-monerod:${{ steps.get_tag.outputs.tag }}
labels: | labels: |
org.opencontainers.image.source=${{ github.event.repository.html_url }} org.opencontainers.image.source=${{ github.event.repository.html_url }}
org.opencontainers.image.created=${{ steps.prep.outputs.created }} org.opencontainers.image.created=${{ steps.prep.outputs.created }}

View File

@@ -38,10 +38,10 @@ jobs:
with: with:
push: true push: true
tags: | tags: |
ghcr.io/sethsimmons/simple-monerod:latest ghcr.io/${{ github.repository_owner }}/simple-monerod:latest
ghcr.io/sethsimmons/simple-monerod:${{ steps.get_tag.outputs.tag }} ghcr.io/${{ github.repository_owner }}/simple-monerod:${{ steps.get_tag.outputs.tag }}
sethsimmons/simple-monerod:latest ${{ secrets.DOCKER_USERNAME }}/simple-monerod:latest
sethsimmons/simple-monerod:${{ steps.get_tag.outputs.tag }} ${{ secrets.DOCKER_USERNAME }}/simple-monerod:${{ steps.get_tag.outputs.tag }}
labels: | labels: |
org.opencontainers.image.source=${{ github.event.repository.html_url }} org.opencontainers.image.source=${{ github.event.repository.html_url }}
org.opencontainers.image.created=${{ steps.prep.outputs.created }} org.opencontainers.image.created=${{ steps.prep.outputs.created }}