-
Notifications
You must be signed in to change notification settings - Fork 45
Add docker release for teeracle #1295
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
dace222
Add docker release for teeracle
mosonyi 58bf709
Fix release teeracle
mosonyi 39644ae
Use ref_name instead of tag_name
mosonyi 79f6a44
Fix downloading binary
mosonyi d1b4e8b
Fix upload binary
mosonyi 080241d
Added file to the release
mosonyi 0dc311b
Add prod build
mosonyi 4e02b22
Fix syntax
mosonyi d829cf6
Add release-build dependency
mosonyi 22f2a4f
Pass production mode arg
mosonyi 059ace2
Added vault import secrets
mosonyi 6a9e657
Added vault import secrets
mosonyi 771aeed
Added vault import secrets
mosonyi c281259
Added vault import secrets
mosonyi f1505c1
Remove tabs
mosonyi 636f5c7
Hardcoded path
mosonyi f04a742
Back to path secret
mosonyi 28683b6
Back to path secret
mosonyi 5023865
Runs on self hosted
mosonyi 4fa684a
Fix run all command
mosonyi cc59106
Fix run all command
mosonyi 2cbebf5
Added ssl pubout
mosonyi 055999e
Added ssl pubout
mosonyi 079477f
itp-attestation-handler: make sure the production flag gets activated…
OverOrion 231af77
Revert back tests
mosonyi aae7f95
Revert back tests
mosonyi cfb2e7b
Merge branch 'master' into zm/teeracle_docker
mosonyi b480585
Update .github/workflows/build_and_test.yml
mosonyi c8a7927
Update .github/workflows/build_and_test.yml
mosonyi 49ef317
Update build.Dockerfile
mosonyi 2517ad3
Rename COMMERCIAL KEY to SIGN KEY
mosonyi 25705e7
Put back release binaries
mosonyi c569650
Merge branch 'master' into zm/teeracle_docker
mosonyi 3f66bc8
Rename SIGN Key to COMMERCIAL Key
mosonyi ea18707
Comment out release binaries
mosonyi e16a073
Try to get tag name
mosonyi 7e4cdd7
Remove unneeded file
mosonyi 351f657
Merge branch 'master' into zm/teeracle_docker
OverOrion File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -10,17 +10,22 @@ jobs: | |
| runs-on: ubuntu-latest | ||
| strategy: | ||
| matrix: | ||
| binary: ["integritee-client", "integritee-demo-validateer"] | ||
| #binary: ["integritee-client", "integritee-demo-validateer"] | ||
| binary: ["teeracle"] | ||
| steps: | ||
| - uses: actions/checkout@v2 | ||
|
|
||
| - name: Set output | ||
| id: vars | ||
| run: echo "{tag}={$GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT | ||
|
|
||
| - name: Get Tag | ||
| id: get_tag | ||
| run: echo ::set-output name=TAG::${GITHUB_REF/refs\/tags\//} | ||
|
|
||
| - name: Check output | ||
| env: | ||
| RELEASE_VERSION: ${{ steps.vars.outputs.tag }} | ||
| RELEASE_VERSION: ${{ steps.get_tag.outputs.TAG }} | ||
| run: | | ||
| echo $RELEASE_VERSION | ||
| echo ${{ steps.vars.outputs.tag }} | ||
|
|
@@ -39,7 +44,7 @@ jobs: | |
| run: | | ||
| ORGANIZATION="integritee" | ||
| IMAGE="${{ matrix.binary }}" | ||
| TAG="${{ steps.vars.outputs.tag }}" | ||
| TAG="${{ steps.get_tag.outputs.TAG }}" | ||
|
|
||
| login_data() { | ||
| cat <<EOF | ||
|
|
@@ -57,9 +62,9 @@ jobs: | |
| -H "Authorization: JWT ${TOKEN}" | ||
|
|
||
| - name: Delete tag as well | ||
| uses: dev-drprasad/[email protected].0 | ||
| uses: dev-drprasad/[email protected].1 | ||
| with: | ||
| delete_release: false # it is triggered by release deletion | ||
| tag_name: ${{ steps.vars.outputs.tag }} # tag name to delete | ||
| tag_name: ${{ steps.get_tag.outputs.TAG }} # tag name to delete | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,43 @@ | ||
| name: Publish Docker image for new teeracle release | ||
|
|
||
| on: | ||
| release: | ||
| types: | ||
| - published | ||
|
|
||
| jobs: | ||
| main: | ||
| name: Push Integritee Teeracle to Dockerhub | ||
| runs-on: [ self-hosted ] | ||
| steps: | ||
| - uses: actions/checkout@v3 | ||
|
|
||
| - name: Download teeracle from release | ||
| uses: dsaltares/fetch-gh-release-asset@master | ||
| with: | ||
| version: "tags/${{ github.event.release.tag_name }}" | ||
| file: integritee-worker-teeracle-${{ github.event.release.tag_name }}.tar.gz | ||
| target: "integritee-worker-teeracle.tar.gz" | ||
| token: ${{ secrets.GITHUB_TOKEN }} | ||
mosonyi marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
|
|
||
| - name: Login to Dockerhub | ||
| uses: docker/login-action@v1 | ||
| with: | ||
| username: ${{ secrets.DOCKER_HUB_USERNAME }} | ||
| password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} | ||
|
|
||
| - name: Load Worker & Push | ||
| env: | ||
| DOCKER_BUILDKIT: 1 | ||
| run: | | ||
| docker image load --input integritee-worker-teeracle.tar.gz | ||
| docker images --all | ||
| docker push integritee/teeracle:${{ github.event.release.tag_name }} | ||
| - name: Delete images | ||
| run: | | ||
| if [[ "$(docker images -q integritee/teeracle:${{ github.event.release.tag_name }} 2> /dev/null)" != "" ]]; then | ||
| docker image rmi --force integritee/teeracle:${{ github.event.release.tag_name }} 2>/dev/null | ||
| fi | ||
| docker images --all | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.