Browse Source

Add Docker Stub Checksum (#1888)

pull/1813/merge
Vince Grassia 4 years ago committed by GitHub
parent
commit
3cefd5fd5d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 16
      .github/workflows/build.yml
  2. 2
      .github/workflows/release.yml

16
.github/workflows/build.yml

@ -403,12 +403,24 @@ jobs: @@ -403,12 +403,24 @@ jobs:
touch $STUB_OUTPUT/env/uid.env
cd docker-stub; zip -r ../docker-stub.zip *; cd ..
- name: Make Docker stub checksum
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/rc' || github.ref == 'refs/heads/hotfix-rc'
run: sha256sum docker-stub.zip > docker-stub-sha256.txt
- name: Upload Docker stub artifact
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/rc' || github.ref == 'refs/heads/hotfix-rc'
uses: actions/upload-artifact@ee69f02b3dfdecd58bb31b4d133da38ba6fe3700
with:
name: docker-stub.zip
path: ./docker-stub.zip
path: docker-stub.zip
if-no-files-found: error
- name: Upload Docker stub checksum artifact
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/rc' || github.ref == 'refs/heads/hotfix-rc'
uses: actions/upload-artifact@ee69f02b3dfdecd58bb31b4d133da38ba6fe3700
with:
name: docker-stub-sha256.txt
path: docker-stub-sha256.txt
if-no-files-found: error
- name: Build Swagger
@ -433,7 +445,7 @@ jobs: @@ -433,7 +445,7 @@ jobs:
uses: actions/upload-artifact@ee69f02b3dfdecd58bb31b4d133da38ba6fe3700
with:
name: swagger.json
path: ./swagger.json
path: swagger.json
if-no-files-found: error

2
.github/workflows/release.yml

@ -233,6 +233,7 @@ jobs: @@ -233,6 +233,7 @@ jobs:
workflow_conclusion: success
branch: ${{ needs.setup.outputs.branch-name }}
artifacts: "docker-stub.zip,
docker-stub-sha256.txt,
swagger.json"
- name: Create release
@ -240,6 +241,7 @@ jobs: @@ -240,6 +241,7 @@ jobs:
uses: ncipollo/release-action@40bb172bd05f266cf9ba4ff965cb61e9ee5f6d01
with:
artifacts: 'docker-stub.zip,
docker-stub-sha256.txt,
swagger.json'
commit: ${{ github.sha }}
tag: "v${{ needs.setup.outputs.release_version }}"

Loading…
Cancel
Save