Skip to content

Commit

Permalink
ci: try to use ghcr
Browse files Browse the repository at this point in the history
  • Loading branch information
drawbu committed Jun 6, 2024
1 parent f6e57ae commit 26b4eaa
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,13 @@ jobs:
- name: Build Docker image
run: nix build .#docker

- name: Upload Docker image artifact
uses: actions/upload-artifact@v2
- name: Log in to GitHub Container Registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin

- name: Upload Docker to ghcr.io
uses: docker/build-push-action@v2
with:
name: docker-image
path: result
context: .
file: ./result
push: true
tags: ghcr.io/${{ github.repository_owner }}/drawbu.dev:latest

0 comments on commit 26b4eaa

Please sign in to comment.