e2e: Use default shell parameters

This commit is contained in:
katexochen 2022-09-02 12:44:51 +02:00 committed by Paul Meyer
parent 0c5c11e8b7
commit b256222b42
4 changed files with 2 additions and 8 deletions

View File

@ -73,8 +73,6 @@ runs:
if: ${{ inputs.cosignPublicKey != '' && inputs.cosignPrivateKey != '' && inputs.cosignPassword != '' }} if: ${{ inputs.cosignPublicKey != '' && inputs.cosignPrivateKey != '' && inputs.cosignPassword != '' }}
- name: Sign CLI - name: Sign CLI
run: | run: |
set -e
set -o pipefail
SIGN_TARGET=constellation-${{ inputs.targetOS }}-${{ inputs.targetArch }} SIGN_TARGET=constellation-${{ inputs.targetOS }}-${{ inputs.targetArch }}
echo "$COSIGN_PUBLIC_KEY" > cosign.pub echo "$COSIGN_PUBLIC_KEY" > cosign.pub
# Enabling experimental mode also publishes signature to Rekor # Enabling experimental mode also publishes signature to Rekor

View File

@ -77,8 +77,6 @@ runs:
if: ${{ inputs.cosignPublicKey != '' && inputs.cosignPrivateKey != '' && inputs.cosignPassword != '' }} if: ${{ inputs.cosignPublicKey != '' && inputs.cosignPrivateKey != '' && inputs.cosignPassword != '' }}
- name: Sign measurements - name: Sign measurements
run: | run: |
set -e
set -o pipefail
echo "$COSIGN_PUBLIC_KEY" > cosign.pub echo "$COSIGN_PUBLIC_KEY" > cosign.pub
# Enabling experimental mode also publishes signature to Rekor # Enabling experimental mode also publishes signature to Rekor
COSIGN_EXPERIMENTAL=1 cosign sign-blob --key env://COSIGN_PRIVATE_KEY measurements.yaml > measurements.yaml.sig COSIGN_EXPERIMENTAL=1 cosign sign-blob --key env://COSIGN_PRIVATE_KEY measurements.yaml > measurements.yaml.sig

View File

@ -29,8 +29,6 @@ runs:
- name: get pseudo version - name: get pseudo version
id: pseudo-version id: pseudo-version
run: | run: |
set -e
set -o pipefail
if $(git rev-parse --is-shallow-repository); then if $(git rev-parse --is-shallow-repository); then
git fetch --prune --unshallow --tags -v git fetch --prune --unshallow --tags -v
else else
@ -52,4 +50,4 @@ runs:
echo "::set-output name=branchName::${branchName}" echo "::set-output name=branchName::${branchName}"
echo "::set-output name=releaseVersion::${releaseVersion}" echo "::set-output name=releaseVersion::${releaseVersion}"
working-directory: hack/pseudo-version working-directory: hack/pseudo-version
shell: bash {0} shell: bash

View File

@ -114,7 +114,7 @@ jobs:
- name: Build and Upload - name: Build and Upload
id: build-and-upload id: build-and-upload
shell: bash {0} shell: bash
run: | run: |
make cosa-image make cosa-image
make -j$(nproc) CONTAINER_ENGINE=docker NETRC=/tmp/.netrc \ make -j$(nproc) CONTAINER_ENGINE=docker NETRC=/tmp/.netrc \