Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Luna-devv committed Nov 28, 2024
1 parent f69d5d9 commit 2673f4f
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,14 @@ jobs:

- name: Set repository variables in lowercase
run: |
echo "REPOSITORY_OWNER=${{ github.repository_owner }}" | tr '[:upper:]' '[:lower:]' >> $GITHUB_ENV
echo "REPOSITORY_NAME=${{ github.event.repository.name }}" | tr '[:upper:]' '[:lower:]' >> $GITHUB_ENV
echo "REPOSITORY_OWNER=${OWNER,,}" >>${GITHUB_ENV}
env:
OWNER: '${{ github.repository_owner }}'

- name: Build Docker image
run: |
docker build -t ghcr.io/${REPOSITORY_OWNER}/${REPOSITORY_NAME}:latest .
docker build -t ghcr.io/${REPOSITORY_OWNER}/${{ github.event.repository.name }}:latest .
- name: Push Docker image
run: |
docker push ghcr.io/${REPOSITORY_OWNER}/${REPOSITORY_NAME}:latest
docker push ghcr.io/${REPOSITORY_OWNER}/${{ github.event.repository.name }}:latest

0 comments on commit 2673f4f

Please sign in to comment.