Skip to content

Commit

Permalink
Migrate from DockerHub to ghcr.io (#16)
Browse files Browse the repository at this point in the history
* Migrate from DockerHub to GHCR.

* Remove branch trigger, update README.
  • Loading branch information
gkoh authored May 15, 2024
1 parent 3deeae7 commit 71bf1a2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 17 deletions.
21 changes: 5 additions & 16 deletions .github/workflows/build-push-dockerhub.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,10 @@ 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 }}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ go build cmd/bom_exporter.go
A binary called `bom_exporter` should be compiled.

## Docker
A Docker image is available on Docker Hub [here](https://hub.docker.com/r/gkoh0/bom_exporter).
A Docker image is available on ghcr.io [here](https://github.com/gkoh/bom_exporter/pkgs/container/bom_exporter).

## Test
```
Expand Down

0 comments on commit 71bf1a2

Please sign in to comment.