diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index e3a8e22..7b4f11d 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -6,14 +6,16 @@ name: Docker # documentation. on: - schedule: - - cron: '38 21 * * *' push: - branches: [ "master" ] - # Publish semver tags as releases. - tags: [ 'v*.*.*' ] + branches: + - main + - develop + tags: + - "v*.*.*" pull_request: - branches: [ "master" ] + branches: + - main + - develop env: # Use docker.io for Docker Hub if empty @@ -21,10 +23,8 @@ env: # github.repository as / IMAGE_NAME: ${{ github.repository }} - jobs: build: - runs-on: ubuntu-latest permissions: contents: read @@ -43,7 +43,7 @@ jobs: if: github.event_name != 'pull_request' uses: sigstore/cosign-installer@59acb6260d9c0ba8f4a2f9d9b48431a222b68e20 #v3.5.0 with: - cosign-release: 'v2.2.4' + cosign-release: "v2.2.4" # Set up BuildKit Docker container builder to be able to build # multi-platform images and export cache @@ -96,4 +96,4 @@ jobs: DIGEST: ${{ steps.build-and-push.outputs.digest }} # This step uses the identity token to provision an ephemeral certificate # against the sigstore community Fulcio instance. - run: echo "${TAGS}" | xargs -I {} cosign sign --yes {}@${DIGEST} \ No newline at end of file + run: echo "${TAGS}" | xargs -I {} cosign sign --yes {}@${DIGEST}