Skip to content

Commit

Permalink
ci: fix artifact uploads
Browse files Browse the repository at this point in the history
Signed-off-by: mikeee <hey@mike.ee>
  • Loading branch information
mikeee committed Jun 14, 2024
1 parent 50fa8fb commit f0415e7
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/validate_examples.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,9 @@ jobs:
run: |
cd cli
make
echo "artifactPath=$HOME/artifacts/$GITHUB_SHA" >> $GITHUB_ENV
echo "artifactPath=~/artifacts/$GITHUB_SHA/" >> $GITHUB_ENV
mkdir -p $HOME/artifacts/$GITHUB_SHA/
sudo cp dist/linux_amd64/release/dapr $artifactpath/dapr
cp dist/linux_amd64/release/dapr $HOME/artifacts/$GITHUB_SHA/dapr
CLI_VERSION=edge
echo "DAPR_CLI_VER=$CLI_VERSION" >> $GITHUB_ENV
Expand All @@ -111,16 +111,22 @@ jobs:
run: |
cd dapr_runtime
make
echo "artifactPath=~/artifacts/$GITHUB_SHA/" >> $GITHUB_ENV
mkdir -p $HOME/artifacts/$GITHUB_SHA/
cp dist/linux_amd64/release/* $artifactPath
cp dist/linux_amd64/release/* $HOME/artifacts/$GITHUB_SHA/
RUNTIME_VERSION=edge
echo "DAPR_RUNTIME_VER=$RUNTIME_VERSION" >> $GITHUB_ENV
- name: Build Docker Image
if: env.DAPR_REF != ''
run: |
cd dapr_runtime
docker build --build-arg "PKG_FILES=*" -f ./docker/Dockerfile ./dist/linux_amd64/release -t daprio/dapr:edge-linux-amd64 --output type=tar,dest=$artifactPath/dapr_docker.tar
docker build --build-arg "PKG_FILES=*" -f ./docker/Dockerfile ./dist/linux_amd64/release -t daprio/dapr:edge-linux-amd64 --output type=tar,dest=$HOME/artifacts/$GITHUB_SHA/dapr_docker.tar
- name: List artifacts
if: env.DAPR_REF != '' || env.DAPR_CLI_REF != ''
run: |
ls -la $HOME/artifacts/$GITHUB_SHA/
- name: Upload dapr-artifacts
uses: actions/upload-artifact@v4
Expand Down Expand Up @@ -195,7 +201,7 @@ jobs:
- name: Display downloaded artifacts
if: env.DAPR_CLI_VER == 'edge' || env.DAPR_RUNTIME_VER == 'edge'
run: |
ls ~/artifacts/$GITHUB_SHA
ls -la $HOME/artifacts/$GITHUB_SHA/
- name: Set up Go
id: setup-go
Expand Down

0 comments on commit f0415e7

Please sign in to comment.