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
|
sed -i 's/to-be-determined@tbd/jc@linux.com/' ./distribution/archlinux/flood/PKGBUILD
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v2
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
||||||
- name: Publish to AUR
|
- name: Publish to AUR
|
||||||
uses: docker/build-push-action@v4
|
uses: docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
build-args: |
|
build-args: |
|
||||||
AUR_FOLDER=./flood
|
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 }}
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||||
|
|
||||||
- name: Upload tarball
|
- name: Upload tarball
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: flood
|
name: flood
|
||||||
path: ./*.tgz
|
path: ./*.tgz
|
||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
|
|
||||||
- name: Wait until the package is available
|
- name: Wait until the package is available
|
||||||
uses: nick-invision/retry@v2
|
uses: nick-invision/retry@v3
|
||||||
with:
|
with:
|
||||||
command: curl -f -s https://registry.npmjs.org/@jesec/flood/${{ steps.tag_release.outputs.BUILD_VERSION }} &>/dev/null
|
command: curl -f -s https://registry.npmjs.org/@jesec/flood/${{ steps.tag_release.outputs.BUILD_VERSION }} &>/dev/null
|
||||||
timeout_minutes: 30
|
timeout_minutes: 30
|
||||||
@@ -70,13 +70,13 @@ jobs:
|
|||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Set up QEMU
|
- name: Set up QEMU
|
||||||
uses: docker/setup-qemu-action@v2
|
uses: docker/setup-qemu-action@v3
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v2
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
||||||
- name: Login to Docker Hub
|
- name: Login to Docker Hub
|
||||||
uses: docker/login-action@v2
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
@@ -87,7 +87,7 @@ jobs:
|
|||||||
echo BUILD_VERSION=0.0.0-master.`git rev-parse --short HEAD` >> $GITHUB_OUTPUT
|
echo BUILD_VERSION=0.0.0-master.`git rev-parse --short HEAD` >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Publish flood:master to Docker Hub
|
- name: Publish flood:master to Docker Hub
|
||||||
uses: docker/build-push-action@v4
|
uses: docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
file: ./distribution/containers/Dockerfile.release
|
file: ./distribution/containers/Dockerfile.release
|
||||||
@@ -101,7 +101,7 @@ jobs:
|
|||||||
- run: sleep 10
|
- run: sleep 10
|
||||||
|
|
||||||
- name: Publish rtorrent-flood to Docker Hub
|
- name: Publish rtorrent-flood to Docker Hub
|
||||||
uses: docker/build-push-action@v4
|
uses: docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
file: ./distribution/containers/Dockerfile.rtorrent
|
file: ./distribution/containers/Dockerfile.rtorrent
|
||||||
@@ -132,13 +132,13 @@ jobs:
|
|||||||
cache: npm
|
cache: npm
|
||||||
|
|
||||||
- name: Set up QEMU
|
- name: Set up QEMU
|
||||||
uses: docker/setup-qemu-action@v2
|
uses: docker/setup-qemu-action@v3
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v2
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
||||||
- name: Login to Docker Hub
|
- name: Login to Docker Hub
|
||||||
uses: docker/login-action@v2
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
@@ -150,7 +150,7 @@ jobs:
|
|||||||
npm version --no-git-tag-version 0.0.0-master.`git rev-parse --short HEAD`
|
npm version --no-git-tag-version 0.0.0-master.`git rev-parse --short HEAD`
|
||||||
|
|
||||||
- name: Publish flood:master-dbg to Docker Hub
|
- name: Publish flood:master-dbg to Docker Hub
|
||||||
uses: docker/build-push-action@v4
|
uses: docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
file: ./Dockerfile
|
file: ./Dockerfile
|
||||||
@@ -160,7 +160,7 @@ jobs:
|
|||||||
tags: jesec/flood:master-dbg
|
tags: jesec/flood:master-dbg
|
||||||
|
|
||||||
- name: Publish rtorrent-flood:master-dbg to Docker Hub
|
- name: Publish rtorrent-flood:master-dbg to Docker Hub
|
||||||
uses: docker/build-push-action@v4
|
uses: docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
file: ./Dockerfile
|
file: ./Dockerfile
|
||||||
@@ -196,7 +196,7 @@ jobs:
|
|||||||
|
|
||||||
- run: sudo npm install -g pkg
|
- run: sudo npm install -g pkg
|
||||||
|
|
||||||
- uses: actions/download-artifact@v2
|
- uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: flood
|
name: flood
|
||||||
|
|
||||||
@@ -213,42 +213,42 @@ jobs:
|
|||||||
mv dist-pkg/flood-linuxstatic-arm64 dist-pkg/flood-linux-arm64
|
mv dist-pkg/flood-linuxstatic-arm64 dist-pkg/flood-linux-arm64
|
||||||
|
|
||||||
- name: 'Upload executable: Linux x64'
|
- name: 'Upload executable: Linux x64'
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: flood-linux-x64
|
name: flood-linux-x64
|
||||||
path: dist-pkg/flood-linux-x64
|
path: dist-pkg/flood-linux-x64
|
||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
|
|
||||||
- name: 'Upload executable: Linux arm64'
|
- name: 'Upload executable: Linux arm64'
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: flood-linux-arm64
|
name: flood-linux-arm64
|
||||||
path: dist-pkg/flood-linux-arm64
|
path: dist-pkg/flood-linux-arm64
|
||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
|
|
||||||
- name: 'Upload executable: MacOS x64'
|
- name: 'Upload executable: MacOS x64'
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: flood-macos-x64
|
name: flood-macos-x64
|
||||||
path: dist-pkg/flood-macos-x64
|
path: dist-pkg/flood-macos-x64
|
||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
|
|
||||||
- name: 'Upload executable: MacOS arm64'
|
- name: 'Upload executable: MacOS arm64'
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: flood-macos-arm64
|
name: flood-macos-arm64
|
||||||
path: dist-pkg/flood-macos-arm64
|
path: dist-pkg/flood-macos-arm64
|
||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
|
|
||||||
- name: 'Upload executable: Windows x64'
|
- name: 'Upload executable: Windows x64'
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: flood-win-x64.exe
|
name: flood-win-x64.exe
|
||||||
path: dist-pkg/flood-win-x64.exe
|
path: dist-pkg/flood-win-x64.exe
|
||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
|
|
||||||
- name: 'Upload executable: Windows arm64'
|
- name: 'Upload executable: Windows arm64'
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v4d
|
||||||
with:
|
with:
|
||||||
name: flood-win-arm64.exe
|
name: flood-win-arm64.exe
|
||||||
path: dist-pkg/flood-win-arm64.exe
|
path: dist-pkg/flood-win-arm64.exe
|
||||||
@@ -262,23 +262,23 @@ jobs:
|
|||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Set up QEMU
|
- name: Set up QEMU
|
||||||
uses: docker/setup-qemu-action@v2
|
uses: docker/setup-qemu-action@v3
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v2
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
||||||
- name: Login to Docker Hub
|
- name: Login to Docker Hub
|
||||||
uses: docker/login-action@v2
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
|
|
||||||
- uses: actions/download-artifact@v2
|
- uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: flood-linux-arm64
|
name: flood-linux-arm64
|
||||||
path: artifacts
|
path: artifacts
|
||||||
|
|
||||||
- uses: actions/download-artifact@v2
|
- uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: flood-linux-x64
|
name: flood-linux-x64
|
||||||
path: artifacts
|
path: artifacts
|
||||||
@@ -286,7 +286,7 @@ jobs:
|
|||||||
- run: find .
|
- run: find .
|
||||||
|
|
||||||
- name: Publish flood:master-distroless to Docker Hub
|
- name: Publish flood:master-distroless to Docker Hub
|
||||||
uses: docker/build-push-action@v4
|
uses: docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
file: ./distribution/containers/Dockerfile.distroless
|
file: ./distribution/containers/Dockerfile.distroless
|
||||||
@@ -296,7 +296,7 @@ jobs:
|
|||||||
tags: jesec/flood:master-distroless
|
tags: jesec/flood:master-distroless
|
||||||
|
|
||||||
- name: Publish rtorrent-flood:master-distroless to Docker Hub
|
- name: Publish rtorrent-flood:master-distroless to Docker Hub
|
||||||
uses: docker/build-push-action@v4
|
uses: docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
file: ./distribution/containers/Dockerfile.distroless
|
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
|
sudo apt install --reinstall -y qemu-user-static
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v2
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
||||||
- name: Login to DockerHub
|
- name: Login to DockerHub
|
||||||
uses: docker/login-action@v2
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Wait until the package is available
|
- name: Wait until the package is available
|
||||||
uses: nick-invision/retry@v2
|
uses: nick-invision/retry@v3
|
||||||
with:
|
with:
|
||||||
command: curl -f -s https://registry.npmjs.org/flood/${{ steps.parse_semver.outputs.FULL_VERSION }} &>/dev/null
|
command: curl -f -s https://registry.npmjs.org/flood/${{ steps.parse_semver.outputs.FULL_VERSION }} &>/dev/null
|
||||||
timeout_minutes: 30
|
timeout_minutes: 30
|
||||||
@@ -110,7 +110,7 @@ jobs:
|
|||||||
- run: sleep 120
|
- run: sleep 120
|
||||||
|
|
||||||
- name: Publish to Docker Hub
|
- name: Publish to Docker Hub
|
||||||
uses: docker/build-push-action@v4
|
uses: docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
build-args: VERSION=${{ steps.parse_semver.outputs.FULL_VERSION }}
|
build-args: VERSION=${{ steps.parse_semver.outputs.FULL_VERSION }}
|
||||||
context: .
|
context: .
|
||||||
|
|||||||
Reference in New Issue
Block a user