Skip to content

Commit

Permalink
Update GitHub Actions workflow to set repository owner to lowercase f…
Browse files Browse the repository at this point in the history
…or Docker image tagging
  • Loading branch information
ndonathan committed Nov 2, 2024
1 parent 1752005 commit fefc686
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,12 @@ jobs:
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Set repository owner to lowercase
run: echo "REPO_OWNER=$(echo ${{ github.repository_owner }} | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV

- name: Build and push Docker image
uses: docker/build-push-action@v2
with:
context: .
push: true
tags: ghcr.io/${{ github.repository_owner }}/posh-rest:latest
tags: ghcr.io/${{ env.REPO_OWNER }}/posh-rest:latest

0 comments on commit fefc686

Please sign in to comment.