From 13b6d2a878a220b64461b85fe78b4961fa60935b Mon Sep 17 00:00:00 2001 From: Karl Johan Grahn <6355577+karl-johan-grahn@users.noreply.github.com> Date: Tue, 17 Sep 2024 17:55:08 +0200 Subject: [PATCH] update (#749) --- .github/workflows/pull_request.yaml | 22 +--------------------- .github/workflows/push.yaml | 6 +++--- .github/workflows/release.yaml | 6 +++--- 3 files changed, 7 insertions(+), 27 deletions(-) diff --git a/.github/workflows/pull_request.yaml b/.github/workflows/pull_request.yaml index 5b675d827..75e13cc2e 100644 --- a/.github/workflows/pull_request.yaml +++ b/.github/workflows/pull_request.yaml @@ -124,7 +124,7 @@ jobs: echo GHCR_IMAGE_REPOSITORY=${{env.REGISTRY}}/$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]') >> $GITHUB_ENV # To identify any broken changes in dockerfiles or dependencies - + - name: Build Docker Image uses: docker/build-push-action@v5 with: @@ -160,23 +160,3 @@ jobs: org.opencontainers.image.source=${{ github.event.repository.clone_url }} org.opencontainers.image.created=${{ steps.prep.outputs.created }} org.opencontainers.image.revision=${{ github.sha }} - - # - name: Comment on PR - # uses: mshick/add-pr-comment@v2 - # if: always() - # env: - # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - # with: - # message-success: '@${{ github.actor }} Images are available for testing. `docker pull ${{ env.GHCR_IMAGE_REPOSITORY }}:${{ steps.generate_tag.outputs.GIT_TAG }}`\n`docker pull ${{ env.GHCR_IMAGE_REPOSITORY }}:${{ steps.generate_tag.outputs.GIT_UBI_TAG }}`' - # message-failure: '@${{ github.actor }} Yikes! You better fix it before anyone else finds out! [Build](/~https://github.com/${{ github.repository }}/commit/${{ github.event.pull_request.head.sha }}/checks) has Failed!' - # allow-repeats: true - - # - name: Notify Slack - # uses: 8398a7/action-slack@v3 - # if: always() # Pick up events even if the job fails or is canceled. - # with: - # status: ${{ job.status }} - # fields: repo,author,action,eventName,ref,workflow - # env: - # GITHUB_TOKEN: ${{ secrets.STAKATER_GITHUB_TOKEN }} - # SLACK_WEBHOOK_URL: ${{ secrets.STAKATER_DELIVERY_SLACK_WEBHOOK }} diff --git a/.github/workflows/push.yaml b/.github/workflows/push.yaml index f4c9ae571..3b61d45a9 100644 --- a/.github/workflows/push.yaml +++ b/.github/workflows/push.yaml @@ -30,7 +30,7 @@ jobs: - name: Check out code uses: actions/checkout@v4 with: - token: ${{ secrets.STAKATER_GITHUB_TOKEN }} + token: ${{ secrets.PUBLISH_TOKEN }} fetch-depth: 0 # otherwise, you will fail to push refs to dest repo submodules: recursive @@ -225,7 +225,7 @@ jobs: # --set reloader.deployment.resources.limits.memory=512Mi \ # --set reloader.deployment.resources.requests.cpu=10m \ # --set reloader.deployment.resources.requests.memory=128Mi > deployments/kubernetes/reloader.yaml - + # helm template reloader deployments/kubernetes/chart/reloader/ --output-dir deployments/kubernetes/manifests && mv deployments/kubernetes/manifests/reloader/templates/* deployments/kubernetes/manifests/ && rm -r deployments/kubernetes/manifests/reloader # - name: Remove labels and annotations from manifests @@ -296,5 +296,5 @@ jobs: status: ${{ job.status }} fields: repo,author,action,eventName,ref,workflow env: - GITHUB_TOKEN: ${{ secrets.STAKATER_GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.PUBLISH_TOKEN }} SLACK_WEBHOOK_URL: ${{ secrets.STAKATER_DELIVERY_SLACK_WEBHOOK }} diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 9cd9bd8e2..4bbbb4380 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -27,7 +27,7 @@ jobs: - name: Check out code uses: actions/checkout@v4 with: - token: ${{ secrets.STAKATER_GITHUB_TOKEN }} + token: ${{ secrets.PUBLISH_TOKEN }} fetch-depth: 0 # otherwise, you will fail to push refs to dest repo submodules: recursive @@ -218,7 +218,7 @@ jobs: version: latest args: release --clean env: - GITHUB_TOKEN: ${{ secrets.STAKATER_GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.PUBLISH_TOKEN }} - name: Notify Slack uses: 8398a7/action-slack@v3 @@ -227,5 +227,5 @@ jobs: status: ${{ job.status }} fields: repo,author,action,eventName,ref,workflow env: - GITHUB_TOKEN: ${{ secrets.STAKATER_GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.PUBLISH_TOKEN }} SLACK_WEBHOOK_URL: ${{ secrets.STAKATER_DELIVERY_SLACK_WEBHOOK }}