From 38bdc87e5a0f069959a24a3284b906f3343e08ba Mon Sep 17 00:00:00 2001 From: vietchinh <1348151+vietchinh@users.noreply.github.com> Date: Fri, 3 Nov 2023 23:29:09 +0100 Subject: [PATCH] fix: ops --- .github/workflows/build.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 604f3470f0..962524ac1f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -60,7 +60,7 @@ jobs: uses: actions/checkout@v4 - name: Checkout Push to Registry action - if: (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch) + if: github.event_name == 'schedule' uses: actions/checkout@v4 with: ref: live @@ -170,7 +170,7 @@ jobs: - name: Push To GHCR uses: redhat-actions/push-to-registry@v2 id: push - if: (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch) && github.ref == 'refs/heads/live' + if: (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') && github.ref == 'refs/heads/live' env: REGISTRY_USER: ${{ github.actor }} REGISTRY_PASSWORD: ${{ github.token }} @@ -185,7 +185,7 @@ jobs: - name: Login to GitHub Container Registry uses: docker/login-action@v3 - if: (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch) && github.ref == 'refs/heads/live' + if: (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') && github.ref == 'refs/heads/live' with: registry: ghcr.io username: ${{ github.actor }} @@ -193,10 +193,10 @@ jobs: # Sign container - uses: sigstore/cosign-installer@v3.1.2 - if: (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch) && github.ref == 'refs/heads/live' + if: (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') && github.ref == 'refs/heads/live' - name: Sign container image - if: ((github.event_name == 'schedule' || github.event_name == 'workflow_dispatch) || github.event_name == 'workflow_dispatch) && github.ref == 'refs/heads/live' + if: ((github.event_name == 'schedule' || github.event_name == github.event_name == 'workflow_dispatch') && github.ref == 'refs/heads/live' run: | cosign sign -y --key env://COSIGN_PRIVATE_KEY ${{ steps.registry_case.outputs.lowercase }}/${{ steps.image_case.outputs.lowercase }}@${TAGS} env: @@ -205,6 +205,6 @@ jobs: COSIGN_PRIVATE_KEY: ${{ secrets.SIGNING_SECRET }} - name: Echo outputs - if: (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch) && github.ref == 'refs/heads/live' + if: (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') && github.ref == 'refs/heads/live' run: | echo "${{ toJSON(steps.push.outputs) }}"