Skip to content

Commit

Permalink
ghcr.io docker
Browse files Browse the repository at this point in the history
  • Loading branch information
r4ulcl committed Dec 6, 2023
1 parent 1208989 commit 5773280
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions .github/workflows/docker-image-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,15 @@ jobs:
push: true
tags: ${{ secrets.DOCKERHUB_USERNAME }}/wifi_db:dev

- name: Set up Docker Login for GitHub Packages Registry
run: echo "//docker.pkg.github.com/:_authToken=${{secrets.GITHUB_TOKEN}}" > ~/.docker/config.json
- name: Login to GitHub Packages
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login -u ${{ github.actor }} docker.pkg.github.com --password-stdin

- name: Publish to Registry
uses: elgohr/Publish-Docker-Github-Action@v5
with:
name: r4ulcl/wifi_db:dev
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
registry: ghcr.io

- name: Pull and push Docker image to GitHub Packages Registry
env:
GITHUB_ACTOR: ${{ secrets.GITHUB_ACTOR }}
run: |
docker pull r4ulcl/wifi_db:dev
docker tag r4ulcl/wifi_db:dev docker.pkg.github.com/r4ulcl/wifi_db:dev
docker push docker.pkg.github.com/r4ulcl/wifi_db:dev

0 comments on commit 5773280

Please sign in to comment.