Skip to content

Commit

Permalink
Migrate from DockerHub to GHCR.
Browse files Browse the repository at this point in the history
  • Loading branch information
gkoh committed May 15, 2024
1 parent 3deeae7 commit b37a3db
Showing 1 changed file with 6 additions and 16 deletions.
22 changes: 6 additions & 16 deletions .github/workflows/build-push-dockerhub.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,16 @@ on:
push:
branches:
- 'main'
- 'migrate-to-ghcr'

jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- uses: actions/checkout@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

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

- name: Build and push
uses: docker/build-push-action@v4
- name: Build and publish Docker image for ${{ github.repository }}
uses: macbre/push-to-ghcr@master
with:
push: true
tags: ${{ vars.DOCKERHUB_TAG }}

image_name: ${{ github.repository }}
github_token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit b37a3db

Please sign in to comment.