Skip to content

Commit 8ef7401

Browse files
committed
test: workflows
2 parents bed4f59 + 8a6baca commit 8ef7401

File tree

6 files changed

+277
-228
lines changed

6 files changed

+277
-228
lines changed

.github/workflows/docker.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,19 @@ jobs:
1212
steps:
1313
-
1414
name: Checkout
15-
uses: actions/checkout@v2
15+
uses: actions/checkout@v4
1616
-
1717
name: Login to Docker Hub
18-
uses: docker/login-action@v1
18+
uses: docker/login-action@v3
1919
with:
2020
username: xcsoft
2121
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
2222
-
2323
name: Set up Docker Build Context
24-
uses: docker/setup-buildx-action@v1
24+
uses: docker/setup-buildx-action@v3
2525
-
2626
name: Build and push
27-
uses: docker/build-push-action@v2
27+
uses: docker/build-push-action@v5
2828
with:
2929
context: .
3030
file: ./Dockerfile
@@ -35,7 +35,7 @@ jobs:
3535
runs-on: ubuntu-latest
3636
steps:
3737
- name: Checkout
38-
uses: actions/checkout@v2
38+
uses: actions/checkout@v4
3939

4040
- name: Login to Docker Hub
4141
if: github.event_name != 'pull_request'
@@ -46,10 +46,10 @@ jobs:
4646
password: ${{ secrets.GITHUB_TOKEN }}
4747

4848
- name: Set up Docker Build Context
49-
uses: docker/setup-buildx-action@v1
49+
uses: docker/setup-buildx-action@v3
5050

5151
- name: Build and push
52-
uses: docker/build-push-action@v2
52+
uses: docker/build-push-action@v5
5353
with:
5454
context: .
5555
file: ./Dockerfile

.github/workflows/test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ jobs:
1212
steps:
1313
-
1414
name: Checkout
15-
uses: actions/checkout@v2
15+
uses: actions/checkout@v4
1616
-
1717
name: Set up Docker Build Context
18-
uses: docker/setup-buildx-action@v1
18+
uses: docker/setup-buildx-action@v3
1919
-
2020
name: Build
21-
uses: docker/build-push-action@v2
21+
uses: docker/build-push-action@v5
2222
with:
2323
context: .
2424
file: ./Dockerfile

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ RUN set -evx -o pipefail \
99
&& rm -rf /var/cache/apk/* \
1010
&& go build -ldflags="-s -w" -o busuanzi main.go
1111

12-
FROM node:16-alpine as ts-builder
12+
FROM node:21-alpine as ts-builder
1313
WORKDIR /app
1414
COPY ./dist .
1515
RUN set -evx -o pipefail \

0 commit comments

Comments
 (0)