Skip to content

Commit

Permalink
Move container to GitHub Packages
Browse files Browse the repository at this point in the history
  • Loading branch information
alexblackie committed Jun 19, 2022
1 parent 294b14d commit 7b6315b
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 12 deletions.
25 changes: 15 additions & 10 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,26 +1,31 @@
name: ci
name: Release
on:
push:
branches: [main]
release:
types: [published]

env:
IMAGE_NAME: ghcr.io/${{ github.repository }}

jobs:
docker:
container:
runs-on: ubuntu-latest
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to DockerHub
uses: docker/login-action@v1

- name: Log in to the container registry
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
with:
registry: cr.b8s.dev
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_PASSWORD }}
- name: Build and push
uses: docker/build-push-action@v2
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push Docker image
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
with:
push: true
tags: cr.b8s.dev/library/rollingpin:${{ github.ref_name }}
tags: ${{ env.IMAGE_NAME }}:latest,${{ env.IMAGE_NAME }}:${{ github.ref_name }}
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ roleRef:
on Kubernetes. Just ensure you set the `serviceAccountName` in your pod spec to
match the Service Account you created for `rollingpin`.

Containers can either by built yourself, or pulled from our registry:
Containers can either by built yourself, or pulled from GitHub Packages:

```
cr.b8s.dev/library/rollingpin:v1.1.1
ghcr.io/blackieops/rollingpin:v1.2.0
```

0 comments on commit 7b6315b

Please sign in to comment.