Skip to content

Commit

Permalink
Merge pull request #1 from peterbogdan/arm64
Browse files Browse the repository at this point in the history
Arm64
  • Loading branch information
peterbogdan authored Jul 5, 2024
2 parents cb3e98f + 03403da commit ec8382e
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
34 changes: 17 additions & 17 deletions .github/actions/tagged_release/docker/codesign/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,21 +53,21 @@ runs:
password: ${{ inputs.docker_hub_access_token }}

########################### Sign built Docker image using cosign ###########################
- name: Sign the published Docker image
shell: bash
env:
COSIGN_PASSWORD: "${{ inputs.codesign_password }}"
run: |
IMAGE_NAME="${{ inputs.docker_hub_org }}/osctrl-${{ inputs.osctrl_component }}:${{ inputs.docker_tag }}"
echo "${{ inputs.codesign_private_key }}" > cosign.key
cosign sign --key cosign.key docker.io/$IMAGE_NAME@${{ inputs.docker_image_digest }}
rm -f cosign.key
# - name: Sign the published Docker image
# shell: bash
# env:
# COSIGN_PASSWORD: "${{ inputs.codesign_password }}"
# run: |
# IMAGE_NAME="${{ inputs.docker_hub_org }}/osctrl-${{ inputs.osctrl_component }}:${{ inputs.docker_tag }}"
# echo "${{ inputs.codesign_private_key }}" > cosign.key
# cosign sign --key cosign.key docker.io/$IMAGE_NAME@${{ inputs.docker_image_digest }}
# rm -f cosign.key

########################### Verify signed image using cosign ###########################
- name: Verify the signed published Docker image
shell: bash
run: |
IMAGE_NAME="${{ inputs.docker_hub_org }}/osctrl-${{ inputs.osctrl_component }}:${{ inputs.docker_tag }}"
echo "${{ inputs.codesign_public_cert }}" > cosign.key
cosign verify --key cosign.key docker.io/$IMAGE_NAME@${{ inputs.docker_image_digest }}
rm -f cosign.key
# ########################### Verify signed image using cosign ###########################
# - name: Verify the signed published Docker image
# shell: bash
# run: |
# IMAGE_NAME="${{ inputs.docker_hub_org }}/osctrl-${{ inputs.osctrl_component }}:${{ inputs.docker_tag }}"
# echo "${{ inputs.codesign_public_cert }}" > cosign.key
# cosign verify --key cosign.key docker.io/$IMAGE_NAME@${{ inputs.docker_image_digest }}
# rm -f cosign.key
2 changes: 1 addition & 1 deletion .github/workflows/create_tagged_releases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ jobs:
matrix:
components: ['tls', 'admin', 'api', 'cli']
goos: ['linux']
goarch: ['amd64']
goarch: ['amd64', 'arm64']
steps:
########################### Checkout code ###########################
- name: Checkout code
Expand Down

0 comments on commit ec8382e

Please sign in to comment.