From 644610ee506f0f4474d81dbab7c7a406138734a3 Mon Sep 17 00:00:00 2001 From: Lukas Grundmann Date: Wed, 7 Jul 2021 13:14:54 +0200 Subject: [PATCH 01/22] Started with Github actions --- .github/workflows/backup-operator-docker.yml | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 .github/workflows/backup-operator-docker.yml diff --git a/.github/workflows/backup-operator-docker.yml b/.github/workflows/backup-operator-docker.yml new file mode 100644 index 0000000..7040544 --- /dev/null +++ b/.github/workflows/backup-operator-docker.yml @@ -0,0 +1,7 @@ +name: Build Backup Operator # Name of workflow +on: [push] +jobs: + Build: # Name of job + runs-on: ubuntu-latest # FIXME: not the best image option + steps: + - run: echo "🐧 🐸 🐸 🐸 Damudda 🎉" From 233cca25b5cb6ee652c9d4b02a81939ae2017cc3 Mon Sep 17 00:00:00 2001 From: Lukas Grundmann Date: Wed, 7 Jul 2021 13:48:39 +0200 Subject: [PATCH 02/22] Started migrating tests to Github Actions --- .github/workflows/backup-operator-docker.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/backup-operator-docker.yml b/.github/workflows/backup-operator-docker.yml index 7040544..931252a 100644 --- a/.github/workflows/backup-operator-docker.yml +++ b/.github/workflows/backup-operator-docker.yml @@ -1,7 +1,15 @@ name: Build Backup Operator # Name of workflow on: [push] jobs: - Build: # Name of job - runs-on: ubuntu-latest # FIXME: not the best image option + Tests: # Name of job + runs-on: golang-1.16.5 steps: - run: echo "🐧 🐸 🐸 🐸 Damudda 🎉" + - run: make kind-create + - run: make test + services: + docker: + image: "docker:20" + env: + DOCKER_TLS_CERTDIR: "" + DOCKER_HOST: "tcp://docker:2375" From 1140a1d6a63b7e828fb50d7edac9cd19a9be8587 Mon Sep 17 00:00:00 2001 From: Lukas Grundmann Date: Wed, 7 Jul 2021 13:59:59 +0200 Subject: [PATCH 03/22] Started migrating tests to Github Actions --- .github/workflows/backup-operator-docker.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/backup-operator-docker.yml b/.github/workflows/backup-operator-docker.yml index 931252a..036dbe0 100644 --- a/.github/workflows/backup-operator-docker.yml +++ b/.github/workflows/backup-operator-docker.yml @@ -2,8 +2,9 @@ name: Build Backup Operator # Name of workflow on: [push] jobs: Tests: # Name of job - runs-on: golang-1.16.5 + runs-on: ubuntu-latest steps: + - uses: actions/checkout@v2 - run: echo "🐧 🐸 🐸 🐸 Damudda 🎉" - run: make kind-create - run: make test From 20b529c841433b97f7e669a529f03b78a2b37c8c Mon Sep 17 00:00:00 2001 From: Lukas Grundmann Date: Wed, 7 Jul 2021 14:04:11 +0200 Subject: [PATCH 04/22] Harden go version --- .github/workflows/backup-operator-docker.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/backup-operator-docker.yml b/.github/workflows/backup-operator-docker.yml index 036dbe0..c2926f1 100644 --- a/.github/workflows/backup-operator-docker.yml +++ b/.github/workflows/backup-operator-docker.yml @@ -4,7 +4,11 @@ jobs: Tests: # Name of job runs-on: ubuntu-latest steps: + # FIXME: - uses: actions/checkout@v2 + - uses: actions/setup-go@v2 + with: + go-version: '^1.16.5' - run: echo "🐧 🐸 🐸 🐸 Damudda 🎉" - run: make kind-create - run: make test From 36b06f6b3a0aa9c03e90f24a90330488c374c824 Mon Sep 17 00:00:00 2001 From: Lukas Grundmann Date: Wed, 7 Jul 2021 14:05:05 +0200 Subject: [PATCH 05/22] Harden go version --- .github/workflows/backup-operator-docker.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/backup-operator-docker.yml b/.github/workflows/backup-operator-docker.yml index c2926f1..bdfa2f6 100644 --- a/.github/workflows/backup-operator-docker.yml +++ b/.github/workflows/backup-operator-docker.yml @@ -7,8 +7,8 @@ jobs: # FIXME: - uses: actions/checkout@v2 - uses: actions/setup-go@v2 - with: - go-version: '^1.16.5' + with: + go-version: '^1.16.5' - run: echo "🐧 🐸 🐸 🐸 Damudda 🎉" - run: make kind-create - run: make test From f528a7cfe140c7885de892ac58413962cbfc37f3 Mon Sep 17 00:00:00 2001 From: Lukas Grundmann Date: Wed, 7 Jul 2021 14:08:34 +0200 Subject: [PATCH 06/22] Add lint job --- .github/workflows/backup-operator-docker.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/backup-operator-docker.yml b/.github/workflows/backup-operator-docker.yml index bdfa2f6..32b31cf 100644 --- a/.github/workflows/backup-operator-docker.yml +++ b/.github/workflows/backup-operator-docker.yml @@ -4,7 +4,6 @@ jobs: Tests: # Name of job runs-on: ubuntu-latest steps: - # FIXME: - uses: actions/checkout@v2 - uses: actions/setup-go@v2 with: @@ -18,3 +17,11 @@ jobs: env: DOCKER_TLS_CERTDIR: "" DOCKER_HOST: "tcp://docker:2375" + Lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-go@v2 + with: + go-version: '^1.16.5' + - run: make lint From 488eca905bbfd5bc4bfa84e2fdc2388f09558481 Mon Sep 17 00:00:00 2001 From: Lukas Grundmann Date: Wed, 7 Jul 2021 14:20:43 +0200 Subject: [PATCH 07/22] Attempt to fix test job --- .github/workflows/backup-operator-docker.yml | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/.github/workflows/backup-operator-docker.yml b/.github/workflows/backup-operator-docker.yml index 32b31cf..ceed274 100644 --- a/.github/workflows/backup-operator-docker.yml +++ b/.github/workflows/backup-operator-docker.yml @@ -2,21 +2,24 @@ name: Build Backup Operator # Name of workflow on: [push] jobs: Tests: # Name of job - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 steps: - uses: actions/checkout@v2 - uses: actions/setup-go@v2 with: go-version: '^1.16.5' + - uses: engineerd/setup-kind@v0.5.0 + with: + version: 'v0.9.0' - run: echo "🐧 🐸 🐸 🐸 Damudda 🎉" - run: make kind-create - run: make test - services: - docker: - image: "docker:20" - env: - DOCKER_TLS_CERTDIR: "" - DOCKER_HOST: "tcp://docker:2375" + #services: + # docker: + # image: "docker:20" + #env: + # DOCKER_TLS_CERTDIR: "" + # DOCKER_HOST: "tcp://docker:2375" Lint: runs-on: ubuntu-latest steps: From 681f7163053934cf155021adb2e5857158c48b41 Mon Sep 17 00:00:00 2001 From: Lukas Grundmann Date: Wed, 7 Jul 2021 14:32:36 +0200 Subject: [PATCH 08/22] Test job: try another Kind integration, strip the step to setup kind on its own --- .github/workflows/backup-operator-docker.yml | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/.github/workflows/backup-operator-docker.yml b/.github/workflows/backup-operator-docker.yml index ceed274..5197e1a 100644 --- a/.github/workflows/backup-operator-docker.yml +++ b/.github/workflows/backup-operator-docker.yml @@ -8,18 +8,10 @@ jobs: - uses: actions/setup-go@v2 with: go-version: '^1.16.5' - - uses: engineerd/setup-kind@v0.5.0 + - uses: helm/kind-action@v1.2.0 with: - version: 'v0.9.0' - - run: echo "🐧 🐸 🐸 🐸 Damudda 🎉" - - run: make kind-create + version: 'v0.11.1' - run: make test - #services: - # docker: - # image: "docker:20" - #env: - # DOCKER_TLS_CERTDIR: "" - # DOCKER_HOST: "tcp://docker:2375" Lint: runs-on: ubuntu-latest steps: From 2666171259ccc9349d315b6f17c2201b6f6d23f9 Mon Sep 17 00:00:00 2001 From: Lukas Grundmann Date: Wed, 7 Jul 2021 14:39:41 +0200 Subject: [PATCH 09/22] Another attempt to fix test job --- .github/workflows/backup-operator-docker.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/backup-operator-docker.yml b/.github/workflows/backup-operator-docker.yml index 5197e1a..a4921bd 100644 --- a/.github/workflows/backup-operator-docker.yml +++ b/.github/workflows/backup-operator-docker.yml @@ -11,7 +11,7 @@ jobs: - uses: helm/kind-action@v1.2.0 with: version: 'v0.11.1' - - run: make test + run: make test Lint: runs-on: ubuntu-latest steps: From fe11891a0d116722fca0c73f3a0ae13bb96c9144 Mon Sep 17 00:00:00 2001 From: Lukas Grundmann Date: Wed, 7 Jul 2021 14:40:31 +0200 Subject: [PATCH 10/22] Another attempt to fix test job --- .github/workflows/backup-operator-docker.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/backup-operator-docker.yml b/.github/workflows/backup-operator-docker.yml index a4921bd..5197e1a 100644 --- a/.github/workflows/backup-operator-docker.yml +++ b/.github/workflows/backup-operator-docker.yml @@ -11,7 +11,7 @@ jobs: - uses: helm/kind-action@v1.2.0 with: version: 'v0.11.1' - run: make test + - run: make test Lint: runs-on: ubuntu-latest steps: From 24e5eb8e4728f49707ca822c772c9d8d83827e28 Mon Sep 17 00:00:00 2001 From: Lukas Grundmann Date: Wed, 7 Jul 2021 14:44:19 +0200 Subject: [PATCH 11/22] Test job: match cluster name from Kind integration to Makefile --- .github/workflows/backup-operator-docker.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/backup-operator-docker.yml b/.github/workflows/backup-operator-docker.yml index 5197e1a..bf3aecb 100644 --- a/.github/workflows/backup-operator-docker.yml +++ b/.github/workflows/backup-operator-docker.yml @@ -11,6 +11,7 @@ jobs: - uses: helm/kind-action@v1.2.0 with: version: 'v0.11.1' + cluster_name: backup-operator-test - run: make test Lint: runs-on: ubuntu-latest From c007f437561df1bbb5660a01652e4ed58ad4f671 Mon Sep 17 00:00:00 2001 From: Lukas Grundmann Date: Tue, 13 Jul 2021 11:25:49 +0200 Subject: [PATCH 12/22] First approach to build & push image with Github actions --- .github/workflows/backup-operator-docker.yml | 24 ++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/.github/workflows/backup-operator-docker.yml b/.github/workflows/backup-operator-docker.yml index bf3aecb..7232111 100644 --- a/.github/workflows/backup-operator-docker.yml +++ b/.github/workflows/backup-operator-docker.yml @@ -14,10 +14,30 @@ jobs: cluster_name: backup-operator-test - run: make test Lint: - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 steps: - uses: actions/checkout@v2 - uses: actions/setup-go@v2 with: go-version: '^1.16.5' - - run: make lint + - run: make lint + Build: + runs-on: ubuntu-20.04 + steps: + # https://docs.github.com/en/actions/guides/publishing-docker-images#publishing-images-to-github-packages + - uses: actions/checkout@v2 + - uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9 + with: + registry: ${{ env.REGISTRY }} + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + - id: meta # Used to pass data into next step + uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38 + with: + images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}{% raw %} + - uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc + with: + context: . + push: true + tags: {% raw %}${{ steps.meta.outputs.tags }} # see id: meta in previous step + labels: ${{ steps.meta.outputs.labels }} # see id: meta in previous step From 101715f0de83503a568b67ef56d14fcb9301b29c Mon Sep 17 00:00:00 2001 From: Lukas Grundmann Date: Tue, 13 Jul 2021 11:29:32 +0200 Subject: [PATCH 13/22] Try to fix YAML --- .github/workflows/backup-operator-docker.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/backup-operator-docker.yml b/.github/workflows/backup-operator-docker.yml index 7232111..39eefd2 100644 --- a/.github/workflows/backup-operator-docker.yml +++ b/.github/workflows/backup-operator-docker.yml @@ -39,5 +39,5 @@ jobs: with: context: . push: true - tags: {% raw %}${{ steps.meta.outputs.tags }} # see id: meta in previous step - labels: ${{ steps.meta.outputs.labels }} # see id: meta in previous step + tags: {% raw %}${{ steps.meta.outputs.tags }} # see id meta in previous step + labels: ${{ steps.meta.outputs.labels }} # see id meta in previous step From c09ec43492c410996887194e97bfe61961ebc1a1 Mon Sep 17 00:00:00 2001 From: Lukas Grundmann Date: Tue, 13 Jul 2021 11:31:01 +0200 Subject: [PATCH 14/22] Try to fix YAML --- .github/workflows/backup-operator-docker.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/backup-operator-docker.yml b/.github/workflows/backup-operator-docker.yml index 39eefd2..6624578 100644 --- a/.github/workflows/backup-operator-docker.yml +++ b/.github/workflows/backup-operator-docker.yml @@ -35,9 +35,9 @@ jobs: uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38 with: images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}{% raw %} - - uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc - with: - context: . - push: true - tags: {% raw %}${{ steps.meta.outputs.tags }} # see id meta in previous step - labels: ${{ steps.meta.outputs.labels }} # see id meta in previous step + #- uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc + #with: + #context: . + #push: true + #tags: {% raw %}${{ steps.meta.outputs.tags }} # see id meta in previous step + #labels: ${{ steps.meta.outputs.labels }} # see id meta in previous step From 548fb6fc2caf76cd6fbfb44fa67eb792ca9bdc86 Mon Sep 17 00:00:00 2001 From: Lukas Grundmann Date: Tue, 13 Jul 2021 12:36:16 +0200 Subject: [PATCH 15/22] Added stuff --- .github/workflows/backup-operator-docker.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/backup-operator-docker.yml b/.github/workflows/backup-operator-docker.yml index 6624578..d50b477 100644 --- a/.github/workflows/backup-operator-docker.yml +++ b/.github/workflows/backup-operator-docker.yml @@ -1,5 +1,8 @@ name: Build Backup Operator # Name of workflow on: [push] +env: + REGISTRY: ghcr.io + IMAGE_NAME: ${{ github.repository }} jobs: Tests: # Name of job runs-on: ubuntu-20.04 From f74b583f8f50d94db78e4720eabfe34cb48791a0 Mon Sep 17 00:00:00 2001 From: Lukas Grundmann Date: Tue, 13 Jul 2021 12:40:09 +0200 Subject: [PATCH 16/22] Removed strange '{% raw %}', which I copied from the Github docs and I suspect to be some markup elements not rendered correctly. --- .github/workflows/backup-operator-docker.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/backup-operator-docker.yml b/.github/workflows/backup-operator-docker.yml index d50b477..795b5f4 100644 --- a/.github/workflows/backup-operator-docker.yml +++ b/.github/workflows/backup-operator-docker.yml @@ -37,10 +37,10 @@ jobs: - id: meta # Used to pass data into next step uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38 with: - images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}{% raw %} - #- uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc - #with: - #context: . - #push: true - #tags: {% raw %}${{ steps.meta.outputs.tags }} # see id meta in previous step - #labels: ${{ steps.meta.outputs.labels }} # see id meta in previous step + images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} + - uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc + with: + context: . + push: true + tags: ${{ steps.meta.outputs.tags }} # see id meta in previous step + labels: ${{ steps.meta.outputs.labels }} # see id meta in previous step From a84e5f4ed0c851bb03bd940d4edb400b00c04d1d Mon Sep 17 00:00:00 2001 From: Lukas Grundmann Date: Tue, 13 Jul 2021 13:06:33 +0200 Subject: [PATCH 17/22] Added job to publish Helm chart --- .github/workflows/backup-operator-docker.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/backup-operator-docker.yml b/.github/workflows/backup-operator-docker.yml index 795b5f4..a70e799 100644 --- a/.github/workflows/backup-operator-docker.yml +++ b/.github/workflows/backup-operator-docker.yml @@ -44,3 +44,10 @@ jobs: push: true tags: ${{ steps.meta.outputs.tags }} # see id meta in previous step labels: ${{ steps.meta.outputs.labels }} # see id meta in previous step + PublishChart: + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v2 + - uses: J12934/helm-gh-pages-action@master + with: + access-token: ${{ secrets.GITHUB_TOKEN }} From a64d4660a301043752e37c6c6834e01431fedbbf Mon Sep 17 00:00:00 2001 From: Lukas Grundmann Date: Tue, 13 Jul 2021 13:08:11 +0200 Subject: [PATCH 18/22] Next attempt to publish chart --- .github/workflows/backup-operator-docker.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/backup-operator-docker.yml b/.github/workflows/backup-operator-docker.yml index a70e799..c290c98 100644 --- a/.github/workflows/backup-operator-docker.yml +++ b/.github/workflows/backup-operator-docker.yml @@ -48,6 +48,6 @@ jobs: runs-on: ubuntu-20.04 steps: - uses: actions/checkout@v2 - - uses: J12934/helm-gh-pages-action@master - with: - access-token: ${{ secrets.GITHUB_TOKEN }} + - uses: helm/chart-releaser-action@v1.2.1 + env: + CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" From 87366322299c489ac5902203497ff0a219970228 Mon Sep 17 00:00:00 2001 From: Lukas Grundmann Date: Tue, 13 Jul 2021 13:18:05 +0200 Subject: [PATCH 19/22] Added dependencies between Github action jobs --- .github/workflows/backup-operator-docker.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/backup-operator-docker.yml b/.github/workflows/backup-operator-docker.yml index c290c98..ad75412 100644 --- a/.github/workflows/backup-operator-docker.yml +++ b/.github/workflows/backup-operator-docker.yml @@ -25,6 +25,7 @@ jobs: go-version: '^1.16.5' - run: make lint Build: + needs: [Tests, Lint] runs-on: ubuntu-20.04 steps: # https://docs.github.com/en/actions/guides/publishing-docker-images#publishing-images-to-github-packages @@ -45,6 +46,7 @@ jobs: tags: ${{ steps.meta.outputs.tags }} # see id meta in previous step labels: ${{ steps.meta.outputs.labels }} # see id meta in previous step PublishChart: + needs: Build runs-on: ubuntu-20.04 steps: - uses: actions/checkout@v2 From 0b1a82fb933e5ad941b37d4164e36e980561e587 Mon Sep 17 00:00:00 2001 From: Lukas Grundmann Date: Tue, 13 Jul 2021 13:26:11 +0200 Subject: [PATCH 20/22] Jobs only on tags --- .github/workflows/backup-operator-docker.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/backup-operator-docker.yml b/.github/workflows/backup-operator-docker.yml index ad75412..74f68ef 100644 --- a/.github/workflows/backup-operator-docker.yml +++ b/.github/workflows/backup-operator-docker.yml @@ -26,6 +26,8 @@ jobs: - run: make lint Build: needs: [Tests, Lint] + # for the if statement see https://github.community/t/trigger-job-on-tag-push-only/18076 + if: github.event_name == 'push' && contains(github.ref, 'refs/tags/') runs-on: ubuntu-20.04 steps: # https://docs.github.com/en/actions/guides/publishing-docker-images#publishing-images-to-github-packages @@ -46,7 +48,9 @@ jobs: tags: ${{ steps.meta.outputs.tags }} # see id meta in previous step labels: ${{ steps.meta.outputs.labels }} # see id meta in previous step PublishChart: - needs: Build + needs: Build # Note this key can be value or list + # for the if statement see: https://github.community/t/trigger-job-on-tag-push-only/18076 + if: github.event_name == 'push' && contains(github.ref, 'refs/tags/') runs-on: ubuntu-20.04 steps: - uses: actions/checkout@v2 From 3a45f8cdc5adda7477743f81d8e058ca85b4dd1b Mon Sep 17 00:00:00 2001 From: Lukas Grundmann Date: Tue, 13 Jul 2021 13:37:12 +0200 Subject: [PATCH 21/22] Removed travis pipeline definition --- .travis.yml | 72 ----------------------------------------------------- 1 file changed, 72 deletions(-) delete mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 4b36383..0000000 --- a/.travis.yml +++ /dev/null @@ -1,72 +0,0 @@ -language: go -dist: xenial -os: linux - -go: - - 1.14.x -services: - - docker -cache: - directories: - - $HOME/.cache/go-build - - $HOME/gopath/pkg/mod - -git: - ## depth set to false overrides travis default behavior to use shallow clones - ## with depth 50 that can cause issues - ## - ## ref: https://github.com/jupyterhub/chartpress#shallow-clones - ## - depth: false - -env: - global: - secure: L5EXD8R2wR2kURGcO1Mqfp2Vct9SlJVuPrBFkYWC9aFGA6Y3+X85nIe3mlzfal+IqEFjjaJysCAPmBF+DVZl96/5fJCwSEtsp5pBv4OmRa3OvXbL8iMK9lGE/SQuitR3YnJzbWmvZ+EO37NXsTogaH2iYlB6NcUi9VCVz8YW/w3Nbqisb2RkM1e6kWHkRXxtbUWiTOMY5iozkGm/rMUBwlpcSa41C5JwEZqrgbC2dsdv7u81haCVfEz4lijT24bplnkXesxiV2khu3Nl0bR58CY2p28kuhz+HXBsnIRcyvX1JU3yERIYWdF6sxW5uPzFIqDKrFw3VxGP33BqUL0ZAQogUWYzrwBiZqwYh3awdahmkuGeeP7zrcM22vVQSwohc7P+A+9DLZsyxiP7haTJ05EY8yU+H7fQlTamq77LBdrFglIBWgMuHpkGkkoZhciKfiKKwBifhC42QOnAz/7+JCHYCzimo0peOYMQcKQOZfnVvXoA9KLPAylGCHOyO7C3SUMPVVBueY7iwb8vr1+a1Pgj5/JHeJ/avzpTjSZBWEqWNOpXxiF29ZxPnSus+vTWHMkUBKjQOELNUrp0lsMKSqucIcjcDiko40YhgYAAORn2Yrn43byHvXINiacsQB7sg+jj2sOaY63bnsAzKpsytJnXzPw9iGCZHA9dMA/sOIk= -before_install: - - - -stages: - - name: lint and test - - name: build - if: tag IS present - - name: publish - if: tag IS present - -jobs: - include: - - stage: lint and test - name: run tests - script: - - make kind-create - - make TEST_LONG="$TRAVIS_TAG" test - after_success: - - make coverage - - - stage: lint and test - name: lint code - script: - - make lint - - - stage: build - name: release docker images - env: - - secure: cGWzCN3cNv9kP7ibRlL90bUWAUHXK4qNRO0k71k35NoS+dWCpGxH2BVxAlGcIUao4VCiH/POhA69+A//bINC24cDAJMyEi+zS+q/HvxqnGpGIS1prJyR+5gZhiEs0KThBmkAKQghDAuLFIZtMQSVqlG4LGoDKWK7cCZ0i+kOnJWWyZ1knOLwyOxZtknL/cR4eaYHy6czObSnoWWV6sRL+d9DkDrssDhv3oQfERITPGjlWqIuVCvvIbd/TQxwjG2KUuEwruJpVZMsReyjZ6qkVZV8sH6RuRiYfGaVmvfiuQECiiTkL7MdsnKUWnRxHcd/zkVjeGnZsVtTk9icq/1gkKQgurQSYbMuxaS/LPM+Tj97UOhQQH8/KXJn/880lDAqn+3Jlx6ZZ5nT7XykszW3N5Qu8cz8qp5Tx2/lXIaIfiDNLXm8SdfYfeD7rJQj2McPn6lPvF8G4y14NQLiNxGzCivF2iiSC+BeqkwEYiU/ML7v5jxPoVjrCcDG3r0YbJbuvtgm/BP+tLU6xpgoSsfbce8T1J0NA3HzvJNRqi+7TyOyDMK6Le5dXXDd/F0Wm8PP93paZl7QszNTIcF0ncBCRc4EriZT2TrzGBR/2s31js2ICJAxJ0bfMLZ+CYOFsWkaM6z4OQ4OzN5VbNIN+IzpICX+pMkDB7MpQXAgRXFXjqU= - - secure: PXCgo+r5Tzb6swDz8OLXVkrUInQouc9MBSSVRsMQVmCLSomzNYUy2U/D4Ue3Udc6LhVXMMXSgwua5SLpqYlYpP2u6zIe9LkxHnVwzbR/TVm1VqFa11wr0/K5CLdz5b1EDAM3R/MMEo7/6oAcnOj1SsI804a9rJfg+8cDCY7lv/jHt3ufBEE4wlwlDql+9J79iCGj94WlpMpgaAaXQsHuLcwS5SDUJury6WhxFkVp3yxc+iAXe7iS4tCfybda0g1HfwqwGNwsbTo6WFKK5QSPgrufu2xsjxGJwU324cV5a1DW0MUkcfwwjPy2yYwK2PIGwWXHrgjCcs5A979FgeahxqRRyCY4A27eK/QigmIYAv9qtDLYBGS8blqJU3n0U2JK2P1B8zJyXr3REy3j8nP6ydyhbpNze3JYnh/iJW2BXMgz1f4YF8BEwXDx5WpyfcNj5qf5N7vJryJzXXh5JlUpIC99Cm4NMnWeiNX4mi+OeJQ7nFQHI1KBCFrQ/Y7y64/xh3HhjpJ0YkaiNWw7oUxG+lmw/4KZ2scNxW0hg7ShuMbdJvbmoyZhpUc1LkeJjwRRmqHH/PC30V/2dviwwxrIOVy4OsHIHJ7ftG7khv9snLgYpKNETmMhkMePyOt/KeN9jG6366prM6+BM1E4ERi+ZuDXoqL2eD66jbRh6vzDiDw= - script: - - echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin - - make DOCKER_TAG=$TRAVIS_TAG docker-build - - make docker-build - - make DOCKER_TAG=$TRAVIS_TAG docker-push - - make docker-push - - - stage: publish - name: release helm chart - dist: bionic - language: python - install: - - set -e - - pip3 install --no-cache-dir -r ci/dev-requirements.txt - python: - - 3.6 - script: - - make helm-publish From cf5eb21fa79fa883efa217612707e9a328607aeb Mon Sep 17 00:00:00 2001 From: Lukas Grundmann Date: Tue, 13 Jul 2021 13:38:17 +0200 Subject: [PATCH 22/22] Removed old stuff required by Travis --- ci/deploy_key.enc | Bin 3360 -> 0 bytes ci/dev-requirements.txt | 11 ----------- ci/publish.sh | 38 -------------------------------------- 3 files changed, 49 deletions(-) delete mode 100644 ci/deploy_key.enc delete mode 100644 ci/dev-requirements.txt delete mode 100755 ci/publish.sh diff --git a/ci/deploy_key.enc b/ci/deploy_key.enc deleted file mode 100644 index 600e81de7d4e81377e0097ad386509d4fbeec908..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3360 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 diff --git a/ci/dev-requirements.txt b/ci/dev-requirements.txt deleted file mode 100644 index 370ee33..0000000 --- a/ci/dev-requirements.txt +++ /dev/null @@ -1,11 +0,0 @@ -## chartpress is important for local development, CI and CD -## - builds images and can push them also (--push) -## - updates image names and tags in values.yaml -## - can publish the built Helm chart (--publish) -## -## chartpress is used by -## - publish -## -## ref: https://github.com/jupyterhub/chartpress -## -chartpress==0.6.* \ No newline at end of file diff --git a/ci/publish.sh b/ci/publish.sh deleted file mode 100755 index b8806e4..0000000 --- a/ci/publish.sh +++ /dev/null @@ -1,38 +0,0 @@ -#!/bin/bash -export PATH="$PATH:$PWD/tools" - -# Setup helm command -echo "Setting up helm..." -ln -sf $PWD/tools/helm3 $PWD/tools/helm - -echo "Decrypting deploy_key..." -set -eu - -# Decrypt a private SSH key having its public key registered on GitHub. It will -# be used to establish an identity with rights to push to the git repository -# hosting our Helm charts: https://github.com/kubism/charts -openssl aes-256-cbc -K $encrypted_189e52c2c347_key -iv $encrypted_189e52c2c347_iv -in ci/deploy_key.enc -out ci/deploy_key -d -chmod 0400 ci/deploy_key - -# Activate logging of bash commands now that the sensitive stuff is done -set -x - -# As chartpress uses git to push to our Helm chart repository, we configure -# git ahead of time to use the identity we decrypted earlier. -export GIT_SSH_COMMAND="ssh -i ${PWD}/ci/deploy_key" - -echo "Publishing chart via chartpress..." -if [ "${TRAVIS_TAG:-}" == "" ]; then - # Using --long, we are ensured to get a build suffix, which ensures we don't - # build the same tag twice. - chartpress --skip-build --publish-chart --long -else - # Setting a tag explicitly enforces a rebuild if this tag had already been - # built and we wanted to override it. - chartpress --skip-build --publish-chart --tag "${TRAVIS_TAG}" -fi - -# Let us log the changes chartpress did, it should include replacements for -# fields in values.yaml, such as what tag for various images we are using. -echo "Changes from chartpress:" -git --no-pager diff