From 064ce273327e6a16960a65ca546f108e0e9893c6 Mon Sep 17 00:00:00 2001 From: Tobias Trabelsi Date: Thu, 25 May 2023 12:42:23 +0200 Subject: [PATCH] add compression per default (#36) * add compression per default * pr builds on workflow change as well * push not on PR build --- .github/workflows/docker-publish-jnlp.yml | 2 ++ .github/workflows/docker-publish-kubectl.yml | 2 ++ .gitignore | 1 + 3 files changed, 5 insertions(+) create mode 100644 .gitignore diff --git a/.github/workflows/docker-publish-jnlp.yml b/.github/workflows/docker-publish-jnlp.yml index 2e5aef4..61232aa 100644 --- a/.github/workflows/docker-publish-jnlp.yml +++ b/.github/workflows/docker-publish-jnlp.yml @@ -17,6 +17,7 @@ on: branches: [ master ] paths: - 'jenkins-inbound-agent/**' + - '.github/workflows/**' env: # Use docker.io for Docker Hub if empty @@ -93,6 +94,7 @@ jobs: push: ${{ github.event_name != 'pull_request' }} tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} + outputs: type=image,oci-mediatypes=true,compression=zstd,compression-level=3,force-compression=true,push=${{ github.event_name != 'pull_request' }} # Sign the resulting Docker image digest except on PRs. # This will only write to the public Rekor transparency log when the Docker diff --git a/.github/workflows/docker-publish-kubectl.yml b/.github/workflows/docker-publish-kubectl.yml index 3afc720..284750d 100644 --- a/.github/workflows/docker-publish-kubectl.yml +++ b/.github/workflows/docker-publish-kubectl.yml @@ -17,6 +17,7 @@ on: branches: [ master ] paths: - 'kubectl/**' + - '.github/workflows/**' env: # Use docker.io for Docker Hub if empty @@ -92,6 +93,7 @@ jobs: push: ${{ github.event_name != 'pull_request' }} tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} + outputs: type=image,oci-mediatypes=true,compression=zstd,compression-level=3,force-compression=true,push=${{ github.event_name != 'pull_request' }} # Sign the resulting Docker image digest except on PRs. # This will only write to the public Rekor transparency log when the Docker diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..600d2d3 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.vscode \ No newline at end of file