Skip to content

Commit

Permalink
chore(deps): bump actions/download-artifact from 2 to 4.1.7 in /.gith…
Browse files Browse the repository at this point in the history
…ub/workflows (#239)

* chore(deps): bump actions/download-artifact in /.github/workflows

Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 2 to 4.1.7.
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](actions/download-artifact@v2...v4.1.7)

---
updated-dependencies:
- dependency-name: actions/download-artifact
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>

* Update upload to the same major

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Cian Butler <[email protected]>
  • Loading branch information
dependabot[bot] and butlerx authored Sep 4, 2024
1 parent b2e85e1 commit c112643
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 18 deletions.
26 changes: 12 additions & 14 deletions .github/workflows/deploy-runtime-installer.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "Build and deploy runtime installer bundle"
name: 'Build and deploy runtime installer bundle'
on:
workflow_call:
inputs:
Expand All @@ -8,15 +8,14 @@ on:
type: string
version:
required: true
type: string
secrets:
type: string
secrets:
aws-cloudfront-distribution-id:
required: true
aws-access-key-id:
required: true
aws-secret-access-key:
aws-secret-access-key:
required: true

jobs:
build-runtime-bundle:
runs-on: ubuntu-latest
Expand All @@ -27,7 +26,7 @@ jobs:
- name: Build bundle using local action
uses: ./installer
- name: Upload bundle as artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: runtime-dependencies-${{github.sha}}.zip
path: ./output/runtime-dependencies.tar.gz
Expand All @@ -36,12 +35,11 @@ jobs:
run: |
CHECKSUM=$(shasum -a 256 ./output/runtime-dependencies.tar.gz | cut -d" " -f1)
echo "checksum=$CHECKSUM" >> "$GITHUB_OUTPUT"
upload-runtime-bundle:
runs-on: ubuntu-latest
needs: [build-runtime-bundle]
steps:
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4.1.7
with:
name: runtime-dependencies-${{github.sha}}.zip
- name: Configure Production AWS Credentials
Expand All @@ -53,9 +51,9 @@ jobs:
- name: Upload installer bundle to S3
env:
CHECKSUM: ${{ needs.build-runtime-bundle.outputs.checksum }}
run: |
aws s3 cp ./runtime-dependencies.tar.gz s3://cage-build-assets-${{ inputs.stage }}/installer/${{ env.CHECKSUM }}.tar.gz
run:
aws s3 cp ./runtime-dependencies.tar.gz s3://cage-build-assets-${{
inputs.stage }}/installer/${{ env.CHECKSUM }}.tar.gz
release-runtime-bundle:
runs-on: ubuntu-latest
needs: [build-runtime-bundle, upload-runtime-bundle]
Expand All @@ -75,7 +73,7 @@ jobs:
aws s3 cp ./latest.txt s3://cage-build-assets-${{ inputs.stage }}/installer/latest
sh ./scripts/update-installer-version.sh ${{ inputs.version }} ${{ env.CHECKSUM }} ${{ inputs.stage }}
aws s3 cp scripts/versions s3://cage-build-assets-${{ inputs.stage }}/runtime/versions
- name: Cloudfront Cache Invalidation
run: |
aws cloudfront create-invalidation --distribution-id ${{ secrets.aws-cloudfront-distribution-id }} --paths "/runtime/versions"
run:
aws cloudfront create-invalidation --distribution-id ${{
secrets.aws-cloudfront-distribution-id }} --paths "/runtime/versions"
11 changes: 7 additions & 4 deletions .github/workflows/test-runtime-builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Build bundle using local action
uses: ./installer
- name: Upload bundle as artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: runtime-dependencies-${{github.sha}}.zip
path: ./output/runtime-dependencies.tar.gz
Expand All @@ -24,16 +24,19 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
dockerfile: [test-abyss.Dockerfile, test-alpine.Dockerfile, test.Dockerfile]
dockerfile:
- test-abyss.Dockerfile
- test-alpine.Dockerfile
- test.Dockerfile
steps:
- uses: actions/checkout@v3
- name: Download bundle artifact
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4.1.7
with:
name: runtime-dependencies-${{github.sha}}.zip
path: ./installer/output
- name: Build image
run: |
cd ./installer
docker build --platform linux/amd64 -t runtime-dependencies-test -f ${{matrix.dockerfile}} .
docker run --platform linux/amd64 -t runtime-dependencies-test
docker run --platform linux/amd64 -t runtime-dependencies-test

0 comments on commit c112643

Please sign in to comment.