Skip to content

Commit 675e5bf

Browse files
committed
chore: fix docker workflows (for me)
1 parent 5d96ef8 commit 675e5bf

File tree

3 files changed

+68
-11
lines changed

3 files changed

+68
-11
lines changed

.github/workflows/docker-nightly-release.yml renamed to .github/workflows/sharevb-docker-nightly-release.yml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,6 @@ jobs:
6363
username: ${{ github.repository_owner }}
6464
password: ${{ secrets.GITHUB_TOKEN }}
6565

66-
- name: Login to Docker Hub
67-
uses: docker/login-action@v3
68-
with:
69-
username: ${{ secrets.DOCKERHUB_USERNAME }}
70-
password: ${{ secrets.DOCKERHUB_TOKEN }}
71-
7266
- name: Set up QEMU
7367
uses: docker/setup-qemu-action@v3
7468

@@ -83,5 +77,4 @@ jobs:
8377
platforms: linux/amd64,linux/arm64
8478
push: true
8579
tags: |
86-
corentinth/it-tools:nightly
87-
ghcr.io/corentinth/it-tools:nightly
80+
ghcr.io/sharevb/it-tools:nightly
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
name: Build and Push Docker Image
2+
3+
on:
4+
push:
5+
branches:
6+
- chore/all-my-stuffs
7+
8+
jobs:
9+
ci:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v4
14+
- run: corepack enable
15+
- uses: actions/setup-node@v3
16+
with:
17+
node-version: 20
18+
cache: 'pnpm'
19+
20+
- name: Install dependencies
21+
run: pnpm i
22+
23+
- name: Run linters
24+
run: pnpm lint
25+
26+
- name: Run unit tests
27+
run: pnpm test
28+
29+
- name: Build the app
30+
run: pnpm build
31+
32+
build:
33+
runs-on: ubuntu-latest
34+
needs:
35+
- ci
36+
steps:
37+
# Checkout the repository
38+
- name: Checkout repository
39+
uses: actions/checkout@v3
40+
41+
# Set up Docker Buildx (to support multi-platform builds)
42+
- name: Set up Docker Buildx
43+
uses: docker/setup-buildx-action@v2
44+
45+
# Log in to GitHub Container Registry (GHCR)
46+
- name: Log in to GitHub Container Registry
47+
uses: docker/login-action@v2
48+
with:
49+
registry: ghcr.io
50+
username: ${{ github.repository_owner }}
51+
password: ${{ secrets.GITHUB_TOKEN }}
52+
53+
# Build and push the Docker image
54+
- name: Build and push Docker image
55+
uses: docker/build-push-action@v5
56+
with:
57+
context: .
58+
push: true
59+
tags: ghcr.io/${{ github.repository_owner }}/it-tools:latest
60+
# Optionally add version tags or specific branch tags like:
61+
# tags: |
62+
# ghcr.io/${{ github.repository_owner }}/your-repo-name:latest
63+
# ghcr.io/${{ github.repository_owner }}/your-repo-name:${{ github.sha }}
64+
65+
# Optionally log out
66+
- name: Log out from GitHub Container Registry
67+
run: docker logout ghcr.io

components.d.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -274,13 +274,10 @@ declare module '@vue/runtime-core' {
274274
NProgress: typeof import('naive-ui')['NProgress']
275275
NRadio: typeof import('naive-ui')['NRadio']
276276
NRadioGroup: typeof import('naive-ui')['NRadioGroup']
277-
NRadio: typeof import('naive-ui')['NRadio']
278-
NRadioGroup: typeof import('naive-ui')['NRadioGroup']
279277
NScrollbar: typeof import('naive-ui')['NScrollbar']
280278
NSelect: typeof import('naive-ui')['NSelect']
281279
NSlider: typeof import('naive-ui')['NSlider']
282280
NSpace: typeof import('naive-ui')['NSpace']
283-
NSpace: typeof import('naive-ui')['NSpace']
284281
NSpin: typeof import('naive-ui')['NSpin']
285282
NStatistic: typeof import('naive-ui')['NStatistic']
286283
NSwitch: typeof import('naive-ui')['NSwitch']

0 commit comments

Comments
 (0)