Skip to content

Commit

Permalink
feat(Actions): push to ghcr.io and Docker Hub
Browse files Browse the repository at this point in the history
  • Loading branch information
Yimura committed May 22, 2023
1 parent 5c9b8bd commit b494ad9
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions .github/workflows/build-container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,30 @@ jobs:
uses: actions/checkout@v3

-
name: Login to Docker Hub
name: Login to ghcr.io
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
username: yimura
password: ${{ secrets.PACKAGE_WRITE_TOKEN }}

-
name: Build and push container
uses: docker/build-push-action@v4
with:
push: true
tags: ghcr.io/yimura/lancache-prefill-cron:latest
tags: ghcr.io/yimura/lancache-prefill-cron:latest

-
name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: yimura
password: ${{ secrets.DOCKER_TOKEN }}

-
name: Build and push container
uses: docker/build-push-action@v4
with:
push: true
tags: yimura/lancache-prefill-cron:latest

0 comments on commit b494ad9

Please sign in to comment.