mirror of
https://github.com/tuna/mirror-web.git
synced 2025-12-25 20:32:46 +00:00
ci: bump action dependencies
This commit is contained in:
parent
704301229b
commit
37c1d90603
|
|
@ -28,22 +28,22 @@ jobs:
|
|||
echo "docker_tag=${tag}" >> $GITHUB_ENV
|
||||
-
|
||||
name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
uses: actions/checkout@v3
|
||||
-
|
||||
name: Prevent from loading rubygems from TUNA
|
||||
run: |
|
||||
sed -i "/^source/c source 'https://rubygems.org'" Gemfile
|
||||
-
|
||||
name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v1
|
||||
uses: docker/setup-qemu-action@v2
|
||||
with:
|
||||
platforms: arm64
|
||||
-
|
||||
name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v1
|
||||
uses: docker/setup-buildx-action@v2
|
||||
-
|
||||
name: Cache Docker layers
|
||||
uses: actions/cache@v2
|
||||
uses: actions/cache@v3
|
||||
if: github.event_name == 'push'
|
||||
with:
|
||||
path: /tmp/.buildx-cache
|
||||
|
|
@ -52,7 +52,7 @@ jobs:
|
|||
${{ runner.os }}-buildx-mirrorweb-
|
||||
-
|
||||
name: Cache Docker layers
|
||||
uses: actions/cache@v2
|
||||
uses: actions/cache@v3
|
||||
if: github.event_name == 'pull_request'
|
||||
with:
|
||||
path: /tmp/.buildx-cache
|
||||
|
|
@ -68,14 +68,14 @@ jobs:
|
|||
exit -1
|
||||
-
|
||||
name: Login to DockerHub
|
||||
uses: docker/login-action@v1
|
||||
uses: docker/login-action@v2
|
||||
if: github.event_name == 'push'
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
-
|
||||
name: Build and push
|
||||
uses: docker/build-push-action@v2
|
||||
uses: docker/build-push-action@v4
|
||||
with:
|
||||
context: .
|
||||
file: Dockerfile.build
|
||||
|
|
|
|||
|
|
@ -18,9 +18,9 @@ jobs:
|
|||
- name: Install jq
|
||||
run: sudo apt-get install -y jq
|
||||
- name: Use Node.js
|
||||
uses: actions/setup-node@v2
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: '16'
|
||||
node-version: 16
|
||||
- name: Transpile
|
||||
run: |
|
||||
git config user.name "TUNA Bot"
|
||||
|
|
@ -29,7 +29,7 @@ jobs:
|
|||
export MIRROR_WEB_HOME=${PWD}
|
||||
bash ${MIRRORZ_HELP_HOME}/custom/tuna/transpile.sh
|
||||
- name: Create Pull Request
|
||||
uses: peter-evans/create-pull-request@v4
|
||||
uses: peter-evans/create-pull-request@v5
|
||||
with:
|
||||
commit-message: "help: transpile from mirrorz-help"
|
||||
add-paths: help/_posts/
|
||||
|
|
|
|||
Loading…
Reference in New Issue