Skip to content

Commit

Permalink
workflow: update actions packages (#1316)
Browse files Browse the repository at this point in the history
* Update checkout action version to v4.

* Update checkout action version to v4.

* Update checkout action version to v4.

* Update release.yml

* Update backend.yml

* Update frontend.yml

* bump actions/upload-artifact and actions/download-artifact to v4

* bump actions/setup-node to v4

* bump docker actions

---------

Co-authored-by: Shuanglei Tao <tsl0922@gmail.com>
  • Loading branch information
upbeat-backbone-bose and tsl0922 committed Mar 29, 2024
1 parent e5fd3f6 commit 89fb69b
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 12 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/backend.yml
Expand Up @@ -23,7 +23,7 @@ jobs:
matrix:
target: [i686, x86_64, arm, armhf, aarch64, mips, mipsel, mips64, mips64el, s390x, win32]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install packages
run: |
sudo apt-get update
Expand All @@ -32,7 +32,8 @@ jobs:
env:
BUILD_TARGET: ${{ matrix.target }}
run: ./scripts/cross-build.sh
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: ttyd.${{ matrix.target }}
path: build/ttyd*

12 changes: 6 additions & 6 deletions .github/workflows/docker.yml
Expand Up @@ -9,7 +9,7 @@ jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install packages
run: |
sudo apt-get update
Expand All @@ -22,9 +22,9 @@ jobs:
[ "$arch" = "armv7" ] && arch="arm"
mkdir -p dist/$arch && cp build/ttyd dist/$arch/ttyd
done
- uses: docker/setup-qemu-action@v2
- uses: docker/setup-buildx-action@v2
- uses: docker/login-action@v2
- uses: docker/setup-qemu-action@v3
- uses: docker/setup-buildx-action@v3
- uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_HUB_USER }}
password: ${{ secrets.DOCKER_HUB_TOKEN }}
Expand All @@ -42,15 +42,15 @@ jobs:
echo "ALPINE_TAG=tsl0922/ttyd:alpine" >> $GITHUB_ENV
esac
- name: build/push docker image
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
platforms: linux/amd64,linux/arm/v7,linux/arm64,linux/s390x
push: true
tags: ${{ env.DOCKER_TAG }}
- name: build/push docker image (alpine)
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile.alpine
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/frontend.yml
Expand Up @@ -14,8 +14,8 @@ jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
- name: Run yarn install, check and build
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Expand Up @@ -11,8 +11,8 @@ jobs:
needs: [build]
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@v3
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
- run: |
mkdir build
for file in ttyd.*/*; do
Expand Down

0 comments on commit 89fb69b

Please sign in to comment.