From 59c0e0704ad698ac8ac470170a378db0ffa35c72 Mon Sep 17 00:00:00 2001 From: secustor Date: Tue, 29 Jun 2021 14:23:55 +0200 Subject: [PATCH 1/2] ci: run docker build and push on release --- .github/workflows/go.yml | 3 --- .github/workflows/publish.yml | 25 +++++++++++++++++++++++++ 2 files changed, 25 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 1c44413..0dbea95 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -4,9 +4,6 @@ on: push: branches: - '**' - - '!master' - pull_request: - branches: [ master ] jobs: test: diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..75df16f --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,25 @@ +on: release + +jobs: + docker: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + - 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 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Build and push + uses: docker/build-push-action@v2 + with: + context: . + push: true + tags: + - camao/cert-manager-webhook-project-pinto:latest + - camao/cert-manager-webhook-project-pinto:$GITHUB_REF From e6185e1d6dc132f2d0ac2e92304a7b0591148bde Mon Sep 17 00:00:00 2001 From: secustor Date: Tue, 29 Jun 2021 14:26:34 +0200 Subject: [PATCH 2/2] doc(README): replace gitlab reference with github --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 9b30c16..4ba5f41 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ kubectl apply --validate=false -f https://github.com/jetstack/cert-manager/relea Once everything is set up, you can now install the Pinto Webhook: - Clone this repository: ```bash -git clone https://gitlab.com/whizus/cert-manager-webhook-pinto.git +git clone https://github.com/camaoag/cert-manager-webhook-project-pinto.git ``` - Run: