mirror of
https://github.com/zoriya/flood.git
synced 2025-12-06 07:16:18 +00:00
ci: upgrade deprecated actions (#747)
This commit is contained in:
4
.github/workflows/distribute-archlinux.yml
vendored
4
.github/workflows/distribute-archlinux.yml
vendored
@@ -20,10 +20,10 @@ jobs:
|
||||
sed -i 's/to-be-determined@tbd/jc@linux.com/' ./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
|
||||
|
||||
52
.github/workflows/publish-rolling.yml
vendored
52
.github/workflows/publish-rolling.yml
vendored
@@ -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
|
||||
@@ -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 }}
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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 }}
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -196,7 +196,7 @@ jobs:
|
||||
|
||||
- run: sudo npm install -g pkg
|
||||
|
||||
- uses: actions/download-artifact@v2
|
||||
- uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: flood
|
||||
|
||||
@@ -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
|
||||
@@ -262,23 +262,23 @@ 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
|
||||
@@ -286,7 +286,7 @@ jobs:
|
||||
- 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
|
||||
@@ -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
|
||||
|
||||
8
.github/workflows/release.yml
vendored
8
.github/workflows/release.yml
vendored
@@ -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
|
||||
@@ -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: .
|
||||
|
||||
Reference in New Issue
Block a user