Skip to content

Commit

Permalink
try again
Browse files Browse the repository at this point in the history
  • Loading branch information
Bogdan Peter committed Jul 6, 2024
1 parent 645cd36 commit a3b4255
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/actions/build/docker/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ runs:
id: docker_build
with:
context: .
id: build
file: ./deploy/cicd/docker/Dockerfile-osctrl-${{ inputs.osctrl_component }}
push: true
labels: ${{ steps.meta.outputs.labels }}
Expand All @@ -96,3 +97,19 @@ runs:
COMPONENT=${{ inputs.osctrl_component }}
GOOS=${{ inputs.go_os }}
GOARCH=${{ inputs.go_arch }}
########################### Export image digest to tmp ###########################
- name: Export digest
run: |
mkdir -p /tmp/digests
digest="${{ steps.build.outputs.digest }}"
touch "/tmp/digests/${digest#sha256:}"
########################### Upload digest ###########################
- name: Upload digest
uses: actions/upload-artifact@v3
with:
name: digests
path: /tmp/digests/*
if-no-files-found: error
retention-days: 1

0 comments on commit a3b4255

Please sign in to comment.