Skip to content

Commit c4c64e9

Browse files
committed
build :: test auth
1 parent bbc6483 commit c4c64e9

File tree

1 file changed

+0
-55
lines changed

1 file changed

+0
-55
lines changed

.github/workflows/ci-cd.yml

Lines changed: 0 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -9,64 +9,9 @@ jobs:
99
contents: read
1010

1111
steps:
12-
- name: Checkout to develop
13-
uses: actions/checkout@v4
14-
with:
15-
ref: ${{ github.ref }}
16-
17-
- name: Install Node.js
18-
uses: actions/setup-node@v4
19-
with:
20-
node-version: 20
21-
22-
- name: Install dependencies
23-
run: npm install
24-
25-
- name: Build with PNPM
26-
run: npm run build
27-
28-
- name: Set up QEMU
29-
if: github.ref == 'refs/heads/main'
30-
uses: docker/setup-qemu-action@v3
31-
32-
- name: Set up Docker Buildx
33-
if: github.ref == 'refs/heads/main'
34-
uses: docker/setup-buildx-action@v3
35-
3612
- name: Login to Docker Hub
3713
if: github.ref == 'refs/heads/main'
3814
uses: docker/login-action@v3
3915
with:
4016
username: ${{ secrets.DOCKER_USERNAME }}
4117
password: ${{ secrets.DOCKER_PASSWORD }}
42-
43-
- name: Build and push by digest
44-
if: github.ref == 'refs/heads/main'
45-
id: build
46-
uses: docker/build-push-action@v6
47-
with:
48-
platforms: linux/amd64,linux/arm64
49-
push: true
50-
tags: ${{ secrets.DOCKER_USERNAME }}/${{ secrets.DOCKER_IMAGE_NAME }}:latest
51-
file: Dockerfile
52-
context: .
53-
54-
publish:
55-
if: ${{ always() && contains(join(needs.*.result, ','), 'success') && github.ref == 'refs/heads/main' }}
56-
needs: [ build ]
57-
runs-on: ubuntu-latest
58-
59-
steps:
60-
- name: Add to Docker
61-
uses: appleboy/ssh-action@v1.0.3
62-
with:
63-
host: ${{ secrets.SSH_HOST }}
64-
username: ${{ secrets.SSH_USERNAME }}
65-
key: ${{ secrets.SSH_KEY }}
66-
port: ${{ secrets.SSH_PORT }}
67-
script: |
68-
docker stop $(docker ps -aq -f 'ancestor=${{ secrets.DOCKER_USERNAME }}/${{ secrets.DOCKER_IMAGE_NAME }}')
69-
docker rm $(docker ps -aq -f 'ancestor=${{ secrets.DOCKER_USERNAME }}/${{ secrets.DOCKER_IMAGE_NAME }}')
70-
71-
docker pull ${{ secrets.DOCKER_USERNAME }}/${{ secrets.DOCKER_IMAGE_NAME }}:latest
72-
docker run -d -p 3336:3336 --name wstoio ${{ secrets.DOCKER_USERNAME }}/${{ secrets.DOCKER_IMAGE_NAME }}

0 commit comments

Comments
 (0)