From 500c48c1551138941f2744d52c0a4bed2121bf6a Mon Sep 17 00:00:00 2001 From: dystewart Date: Thu, 6 Jul 2023 16:46:40 -0400 Subject: [PATCH] Add publish workflow to build and push curator-manager image to ghcr --- .github/workflows/publish.yaml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/publish.yaml diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml new file mode 100644 index 0000000..908f1c2 --- /dev/null +++ b/.github/workflows/publish.yaml @@ -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 \ No newline at end of file