Skip to content

Commit

Permalink
Add login action and use full repository name for ghcr
Browse files Browse the repository at this point in the history
  • Loading branch information
serra committed Aug 21, 2024
1 parent cfc655e commit 6d4f925
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ jobs:
- name: Package
run: |
make docker_image
- name: 'Login to GitHub Container Registry'
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{github.actor}}
password: ${{secrets.GITHUB_TOKEN}}
- name: Publish
run: |
make docker_push
6 changes: 3 additions & 3 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ release:
@git tag v$$(python -m setuptools_scm --strip-dev)
@git push origin --tags
docker_image:
docker build -t ghcr.io/serraict/flordidayvine:$(VERSION) .
docker build -t ghcr.io/serraict/vine-floriday-adapter:$(VERSION) .
docker_push: docker_image
docker push ghcr.io/serraict/flordidayvine:$(VERSION)
docker push ghcr.io/serraict/vine-floriday-adapter:$(VERSION)
docker_run:
docker run --env-file=.env floridayvine
docker run --env-file=.env vine-floriday-adapter

0 comments on commit 6d4f925

Please sign in to comment.