Skip to content

Commit

Permalink
Update deprecated Github actions
Browse files Browse the repository at this point in the history
Updated all the github actions that were throwing deprecation
warnings around node.js 16 no longer being supported.
  • Loading branch information
ARolek committed Feb 24, 2024
1 parent 2a1891e commit a24cc1f
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 28 deletions.
16 changes: 8 additions & 8 deletions .github/actions/tegola-setup-env/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,37 +14,37 @@ runs:
using: "composite"
steps:
- name: Check out code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Download version artifact
uses: actions/download-artifact@v1
uses: actions/download-artifact@v4
with:
name: version

- name: Download ui artifact
uses: actions/download-artifact@v1
uses: actions/download-artifact@v4
with:
name: ui
path: ${{ github.workspace }}/ui/dist
if: ${{ inputs.ui == 'true' }}

- name: Set up Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: 1.21.3
go-version-file: 'go.mod'
if: ${{ inputs.go == 'true' }}

- name: Set tegola version
run: go run ci/cat_version_envs.go -version_file version/version.txt | tee $GITHUB_ENV
run: go run ci/cat_version_envs.go -version_file version.txt | tee $GITHUB_ENV
shell: bash

- name: Download default-branch-ref artifact
uses: actions/download-artifact@v1
uses: actions/download-artifact@v4
with:
name: default-branch-ref

- name: Set tegola default branch ref
run: echo "DEFAULT_BRANCH_REF=$(cat default-branch-ref/default-branch-ref.txt)" >> $GITHUB_ENV
run: echo "DEFAULT_BRANCH_REF=$(cat default-branch-ref.txt)" >> $GITHUB_ENV
shell: bash

- name: Say goodbye
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/upload-artifact/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ runs:
shell: pwsh

- name: Upload build artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ inputs.release_archive_name }}
path: ${{ steps.zip-path.outputs.dir-path }}tegola.zip
Expand Down
38 changes: 19 additions & 19 deletions .github/workflows/on_release_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:

steps:
- name: Check out code
uses: actions/checkout@v3
uses: actions/checkout@v4

# on release, we want to use release.tag_name for the version
- name: Set tegola version (use release.tag_name)
Expand All @@ -26,7 +26,7 @@ jobs:
run: echo ${{ github.sha }} | cut -c1-7 > ${{ github.workspace }}/version.txt

- name: Upload build artifact version
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: version
path: ${{ github.workspace }}/version.txt
Expand All @@ -40,7 +40,7 @@ jobs:
echo "refs/heads/$DEFAULT_BRANCH" > ${{ github.workspace }}/default-branch-ref.txt
- name: Upload build artifacts default branch ref
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: default-branch-ref
path: ${{ github.workspace }}/default-branch-ref.txt
Expand All @@ -51,12 +51,12 @@ jobs:

steps:
- name: Check out code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: 1.21.3
go-version-file: 'go.mod'

- name: Build embedded UI
run: |
Expand All @@ -65,7 +65,7 @@ jobs:
popd
- name: Upload build artifact version
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ui
path: ${{ github.workspace }}/ui/dist
Expand All @@ -77,7 +77,7 @@ jobs:

steps:
- name: Check out actions
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup env
uses: ./.github/actions/tegola-setup-env
Expand Down Expand Up @@ -106,7 +106,7 @@ jobs:

steps:
- name: Check out actions
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup env
uses: ./.github/actions/tegola-setup-env
Expand Down Expand Up @@ -136,7 +136,7 @@ jobs:

steps:
- name: Check out actions
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup env
uses: ./.github/actions/tegola-setup-env
Expand Down Expand Up @@ -166,7 +166,7 @@ jobs:

steps:
- name: Check out actions
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup env
uses: ./.github/actions/tegola-setup-env
Expand Down Expand Up @@ -196,7 +196,7 @@ jobs:

steps:
- name: Check out actions
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup env
uses: ./.github/actions/tegola-setup-env
Expand Down Expand Up @@ -232,13 +232,13 @@ jobs:
steps:
- name: Check out code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up QEMU
uses: docker/setup-qemu-action@v2
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3

- name: Login to Docker Hub
uses: docker/login-action@v3
Expand All @@ -257,7 +257,7 @@ jobs:
# Note that linux/amd64 is cached, so when we build images for publishing
# we are not rebuilding linux/amd64
- name: Build docker image for testing
uses: docker/build-push-action@v4
uses: docker/build-push-action@v5
with:
context: .
load: true
Expand All @@ -271,7 +271,7 @@ jobs:
- name: Publish Docker edge container
if: github.ref == env.DEFAULT_BRANCH_REF
uses: docker/build-push-action@v4
uses: docker/build-push-action@v5
with:
context: .
push: true
Expand All @@ -281,7 +281,7 @@ jobs:

- name: Publish Docker container
if: github.event_name == 'release'
uses: docker/build-push-action@v4
uses: docker/build-push-action@v5
with:
context: .
push: true
Expand All @@ -296,7 +296,7 @@ jobs:

steps:
- name: Check out actions
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup env
uses: ./.github/actions/tegola-setup-env
Expand Down

0 comments on commit a24cc1f

Please sign in to comment.