Skip to content

Commit

Permalink
Add publish workflow to build and push curator-manager image to ghcr
Browse files Browse the repository at this point in the history
  • Loading branch information
dystewart committed Jul 6, 2023
1 parent 45fd787 commit 500c48c
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: publish

on:
push:
branches:
- main

registry_package:
types:
- published
name:
- ghcr.io/dystewart/curator-manager:latest
workflow_dispatch:

jobs:
publish-vault-k8s-login:
runs-on: ubuntu-latest

steps:
- name: Login to GitHub Container Registry
- uses: actions/checkout@v2
- uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.PUBLISH_SECRET }}
- name: Build the Docker image
run: |
make docker-build -t ghcr.io/dystewart/curator-manager:latest
docker push ghcr.io/dystewart/curator-manager:latest

0 comments on commit 500c48c

Please sign in to comment.