Skip to content

Commit

Permalink
ci: upgrade deprecated actions (#747)
Browse files Browse the repository at this point in the history
  • Loading branch information
trim21 authored May 4, 2024
1 parent 7cdf1de commit d7b94c9
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 32 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/distribute-archlinux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ jobs:
sed -i 's/to-be-determined@tbd/[email protected]/' ./distribution/archlinux/flood/PKGBUILD
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3

- name: Publish to AUR
uses: docker/build-push-action@v4
uses: docker/build-push-action@v5
with:
build-args: |
AUR_FOLDER=./flood
Expand Down
52 changes: 26 additions & 26 deletions .github/workflows/publish-rolling.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,14 @@ jobs:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Upload tarball
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: flood
path: ./*.tgz
if-no-files-found: error

- name: Wait until the package is available
uses: nick-invision/retry@v2
uses: nick-invision/retry@v3
with:
command: curl -f -s https://registry.npmjs.org/@jesec/flood/${{ steps.tag_release.outputs.BUILD_VERSION }} &>/dev/null
timeout_minutes: 30
Expand All @@ -70,13 +70,13 @@ jobs:
- 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@v2
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
Expand All @@ -87,7 +87,7 @@ jobs:
echo BUILD_VERSION=0.0.0-master.`git rev-parse --short HEAD` >> $GITHUB_OUTPUT
- name: Publish flood:master to Docker Hub
uses: docker/build-push-action@v4
uses: docker/build-push-action@v5
with:
context: .
file: ./distribution/containers/Dockerfile.release
Expand All @@ -101,7 +101,7 @@ jobs:
- run: sleep 10

- name: Publish rtorrent-flood to Docker Hub
uses: docker/build-push-action@v4
uses: docker/build-push-action@v5
with:
context: .
file: ./distribution/containers/Dockerfile.rtorrent
Expand Down Expand Up @@ -132,13 +132,13 @@ jobs:
cache: npm

- 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@v2
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
Expand All @@ -150,7 +150,7 @@ jobs:
npm version --no-git-tag-version 0.0.0-master.`git rev-parse --short HEAD`
- name: Publish flood:master-dbg to Docker Hub
uses: docker/build-push-action@v4
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
Expand All @@ -160,7 +160,7 @@ jobs:
tags: jesec/flood:master-dbg

- name: Publish rtorrent-flood:master-dbg to Docker Hub
uses: docker/build-push-action@v4
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
Expand Down Expand Up @@ -196,7 +196,7 @@ jobs:
- run: sudo npm install -g pkg

- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v4
with:
name: flood

Expand All @@ -213,42 +213,42 @@ jobs:
mv dist-pkg/flood-linuxstatic-arm64 dist-pkg/flood-linux-arm64
- name: 'Upload executable: Linux x64'
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: flood-linux-x64
path: dist-pkg/flood-linux-x64
if-no-files-found: error

- name: 'Upload executable: Linux arm64'
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: flood-linux-arm64
path: dist-pkg/flood-linux-arm64
if-no-files-found: error

- name: 'Upload executable: MacOS x64'
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: flood-macos-x64
path: dist-pkg/flood-macos-x64
if-no-files-found: error

- name: 'Upload executable: MacOS arm64'
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: flood-macos-arm64
path: dist-pkg/flood-macos-arm64
if-no-files-found: error

- name: 'Upload executable: Windows x64'
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: flood-win-x64.exe
path: dist-pkg/flood-win-x64.exe
if-no-files-found: error

- name: 'Upload executable: Windows arm64'
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4d
with:
name: flood-win-arm64.exe
path: dist-pkg/flood-win-arm64.exe
Expand All @@ -262,31 +262,31 @@ jobs:
- 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@v2
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v4
with:
name: flood-linux-arm64
path: artifacts

- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v4
with:
name: flood-linux-x64
path: artifacts

- run: find .

- name: Publish flood:master-distroless to Docker Hub
uses: docker/build-push-action@v4
uses: docker/build-push-action@v5
with:
context: .
file: ./distribution/containers/Dockerfile.distroless
Expand All @@ -296,7 +296,7 @@ jobs:
tags: jesec/flood:master-distroless

- name: Publish rtorrent-flood:master-distroless to Docker Hub
uses: docker/build-push-action@v4
uses: docker/build-push-action@v5
with:
context: .
file: ./distribution/containers/Dockerfile.distroless
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,16 +91,16 @@ jobs:
sudo apt install --reinstall -y qemu-user-static
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3

- name: Login to DockerHub
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Wait until the package is available
uses: nick-invision/retry@v2
uses: nick-invision/retry@v3
with:
command: curl -f -s https://registry.npmjs.org/flood/${{ steps.parse_semver.outputs.FULL_VERSION }} &>/dev/null
timeout_minutes: 30
Expand All @@ -110,7 +110,7 @@ jobs:
- run: sleep 120

- name: Publish to Docker Hub
uses: docker/build-push-action@v4
uses: docker/build-push-action@v5
with:
build-args: VERSION=${{ steps.parse_semver.outputs.FULL_VERSION }}
context: .
Expand Down

0 comments on commit d7b94c9

Please sign in to comment.