Skip to content

Commit

Permalink
test: workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
soxft committed Apr 22, 2024
2 parents bed4f59 + 8a6baca commit 8ef7401
Show file tree
Hide file tree
Showing 6 changed files with 277 additions and 228 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,19 @@ jobs:
steps:
-
name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
-
name: Login to Docker Hub
uses: docker/login-action@v1
uses: docker/login-action@v3
with:
username: xcsoft
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
-
name: Set up Docker Build Context
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v3
-
name: Build and push
uses: docker/build-push-action@v2
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
Expand All @@ -35,7 +35,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

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

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

- name: Build and push
uses: docker/build-push-action@v2
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ jobs:
steps:
-
name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
-
name: Set up Docker Build Context
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v3
-
name: Build
uses: docker/build-push-action@v2
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ RUN set -evx -o pipefail \
&& rm -rf /var/cache/apk/* \
&& go build -ldflags="-s -w" -o busuanzi main.go

FROM node:16-alpine as ts-builder
FROM node:21-alpine as ts-builder
WORKDIR /app
COPY ./dist .
RUN set -evx -o pipefail \
Expand Down
Loading

0 comments on commit 8ef7401

Please sign in to comment.