Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
RC container image fixes (#7607)
Browse files Browse the repository at this point in the history
* Remove ENV for the artifacts folder
  • Loading branch information
chevdor authored Aug 14, 2023
1 parent 9417f16 commit 3999688
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/release-40_publish-rc-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DOCKER_OWNER: ${{ inputs.owner || github.repository_owner }}
REPO: ${{ github.repository }}
ARTIFACT_FOLDER: release-artifacts

jobs:
fetch-artifacts:
Expand All @@ -51,7 +50,7 @@ jobs:
with:
key: artifacts-${{ github.sha }}
path: |
${ARTIFACT_FOLDER}/**/*
./release-artifacts/**/*
build-container:
runs-on: ubuntu-latest
Expand All @@ -69,19 +68,20 @@ jobs:
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3.3.1
with:
key: artifacts-${{ github.sha }}
fail-on-cache-miss: true
path: |
${ARTIFACT_FOLDER}/**/*
./release-artifacts/**/*
- name: Check sha256 ${{ matrix.binary }}
working-directory: ${ARTIFACT_FOLDER}
working-directory: ./release-artifacts
run: |
. ../scripts/ci/common/lib.sh
echo "Checking binary ${{ matrix.binary }}"
check_sha256 ${{ matrix.binary }} && echo "OK" || echo "ERR"
- name: Check GPG ${{ matrix.binary }}
working-directory: ${ARTIFACT_FOLDER}
working-directory: ./release-artifacts
run: |
. ../scripts/ci/common/lib.sh
import_gpg_keys
Expand All @@ -102,7 +102,7 @@ jobs:
- name: Build Injected Container image for ${{ matrix.binary }}
env:
BIN_FOLDER: ${ARTIFACT_FOLDER}
BIN_FOLDER: ./release-artifacts
BINARY: ${{ matrix.binary }}
TAGS: ${{join(steps.fetch_refs.outputs.*, ',')}}
run: |
Expand Down
6 changes: 3 additions & 3 deletions scripts/ci/common/lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,6 @@ check_bootnode(){
fetch_release_artifacts() {
echo "Release ID : $RELEASE_ID"
echo "Repo : $REPO"
echo "ARTIFACT_FOLDER: $ARTIFACT_FOLDER"

curl -L -s \
-H "Accept: application/vnd.github+json" \
Expand All @@ -214,8 +213,8 @@ fetch_release_artifacts() {
count=$(jq '.assets|length' < release.json )

# Fetch artifacts
mkdir -p ${ARTIFACT_FOLDER}
pushd ${ARTIFACT_FOLDER} > /dev/null
mkdir -p "./release-artifacts"
pushd "./release-artifacts" > /dev/null

iter=1
for id in "${ids[@]}"
Expand All @@ -227,6 +226,7 @@ fetch_release_artifacts() {
iter=$((iter + 1))
done

pwd
ls -al --color
popd > /dev/null
}
Expand Down

0 comments on commit 3999688

Please sign in to comment.