Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
Bogdan Peter committed Jul 6, 2024
1 parent 21a8d47 commit f6b2e56
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 10 deletions.
4 changes: 0 additions & 4 deletions .github/actions/build/docker/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ inputs:
commit_sha:
required: true
description: Define the SHA1 git commit hash
docker_tag:
required: true
description: Define the Docker tag
docker_hub_org:
required: true
description: Pass DockerHub org to action
Expand Down Expand Up @@ -103,7 +100,6 @@ runs:
run: |
mkdir -p /tmp/digests
digest="${{ steps.docker_build.outputs.digest }}"
echo "${digest}"
touch "/tmp/digests/${digest#sha256:}"
########################### Upload digest ###########################
Expand Down
4 changes: 2 additions & 2 deletions .github/actions/tagged_release/docker/codesign/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ runs:
IMAGE_NAME="${{ inputs.docker_hub_org }}/osctrl-${{ inputs.osctrl_component }}:$tag"
for digest in ${{ inputs.docker_image_digest }}
do
cosign sign --key cosign.key docker.io/$IMAGE_NAME@$digest
cosign sign --key cosign.key docker.io/$IMAGE_NAME@sha256:$digest
done
done
rm -f cosign.key
Expand All @@ -79,7 +79,7 @@ runs:
IMAGE_NAME="${{ inputs.docker_hub_org }}/osctrl-${{ inputs.osctrl_component }}:$tag"
for digest in ${{ inputs.docker_image_digest }}
do
cosign verify --key cosign.key docker.io/$IMAGE_NAME@$digest
cosign verify --key cosign.key docker.io/$IMAGE_NAME@sha256:$digest
done
done
rm -f cosign.key
1 change: 0 additions & 1 deletion .github/workflows/build_and_test_main_merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@ jobs:
#### Build vars ####
osctrl_component: ${{ matrix.components }}
commit_sha: ${{ steps.vars.outputs.sha_short }}
docker_tag: ${{ steps.vars.outputs.sha_short }}
#### Dockerhub creds ####
docker_hub_org: ${{ secrets.DOCKER_HUB_ORG }}
docker_hub_username: ${{ secrets.DOCKER_HUB_USERNAME }}
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/create_tagged_releases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@ jobs:
#### Build vars ####
osctrl_component: ${{ matrix.components }}
commit_sha: ${{ steps.vars.outputs.sha_short }}
docker_tag: ${{ steps.vars.outputs.branch }}
#### Dockerhub creds ####
docker_hub_org: ${{ secrets.DOCKER_HUB_ORG }}
docker_hub_username: ${{ secrets.DOCKER_HUB_USERNAME }}
Expand Down Expand Up @@ -179,7 +178,7 @@ jobs:
working-directory: /tmp/digests
run: |
docker buildx imagetools create $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \
$(printf '${{ secrets.DOCKER_HUB_ORG }}/osctrl-${{ matrix.components }}@%s ' *)
$(printf '${{ secrets.DOCKER_HUB_ORG }}/osctrl-${{ matrix.components }}@sha256:%s ' *)
- name: Export digests and tags for cosign
id: docker_vars
Expand Down Expand Up @@ -210,7 +209,7 @@ jobs:
docker buildx imagetools inspect ${{ secrets.DOCKER_HUB_ORG }}/osctrl-${{ matrix.components }}:${{ steps.meta.outputs.version }}
create_release:
needs: [build_and_test,create_deb_packages,create_docker_images]
needs: [build_and_test,create_deb_packages,push_docker_images]
runs-on: ubuntu-22.04
strategy:
matrix:
Expand Down

0 comments on commit f6b2e56

Please sign in to comment.