Skip to content

Commit

Permalink
Update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Daranix committed Jun 25, 2023
1 parent 95f7bbb commit 7489c2a
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/build-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,14 @@ jobs:
- name: Convert repository name to lowercase
id: lowercase-repo
run: echo "::set-output name=repository::$(echo ${GITHUB_REPOSITORY} | tr '[:upper:]' '[:lower:]')"

- name: Login to Docker Hub
uses: docker/login-action@v2
with:
registry: ghrc.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push
uses: docker/build-push-action@v4
with:
context: .
push: true
tags: ghcr.io/${{ steps.lowercase-repo.outputs.repository }}:latest
env:
DOCKER_BUILDKIT: 1
DOCKER_USERNAME: ${{ github.repository_owner }}
DOCKER_PASSWORD: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 7489c2a

Please sign in to comment.