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