Skip to content

Commit

Permalink
update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
cbarbian-sap committed Jul 14, 2023
1 parent b8cf47d commit afd07a5
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@ jobs:
permissions:
contents: read
packages: write
env:
IMAGE_NAME: ${{ github.repository }}

steps:
- name: Checkout repository
Expand All @@ -61,6 +59,12 @@ jobs:
username: ${{ github.actor }}
password: ${{ github.token }}

- name: Prepare repository name
id: prepare-repository-name
run: |
repository=$REGISTRY/${{ github.repository }}
echo "repository=${repository,,}" >> $GITHUB_OUTPUT
- name: Prepare custom labels for Docker
id: extract-custom-labels
run: |
Expand All @@ -80,7 +84,7 @@ jobs:
id: extract-metadata
uses: docker/metadata-action@v4
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
images: ${{ steps.prepare-repository-name.outputs.repository }}
labels: ${{ steps.extract-custom-labels.outputs.labels }}

- name: Build and push Docker image
Expand Down

0 comments on commit afd07a5

Please sign in to comment.