Skip to content

Commit

Permalink
make owner name lower
Browse files Browse the repository at this point in the history
  • Loading branch information
TOwInOK committed Sep 5, 2024
1 parent 1553ff4 commit a8b9c63
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,21 +43,31 @@ jobs:
needs:
- Clippy
runs-on: ubuntu-latest
env:
repo: ${{ github.repository }}
owner: ${{ github.repository_owner }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: Convert to lowercase
id: c2l
run: |
INPUT=${{ env.repo }}; echo "l_repo=${INPUT,,}">>${GITHUB_OUTPUT}
INPUT=${{ env.owner }}; echo "l_owner=${INPUT,,}">>${GITHUB_OUTPUT}
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
username: ${{steps.c2l.outputs.l_owner}}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v2
with:
context: .
file: Dockerfile
push: true
tags: ghcr.io/${{ github.repository }}:latest
tags: ghcr.io/${{steps.c2l.outputs.l_repo}}:latest

0 comments on commit a8b9c63

Please sign in to comment.