From 675e5bffa89f14cda05c882a453a75ed2a57abd0 Mon Sep 17 00:00:00 2001 From: ShareVB Date: Mon, 11 Nov 2024 19:30:14 +0100 Subject: [PATCH] chore: fix docker workflows (for me) --- ...yml => sharevb-docker-nightly-release.yml} | 9 +-- .github/workflows/sharevb-docker-realease.yml | 67 +++++++++++++++++++ components.d.ts | 3 - 3 files changed, 68 insertions(+), 11 deletions(-) rename .github/workflows/{docker-nightly-release.yml => sharevb-docker-nightly-release.yml} (87%) create mode 100644 .github/workflows/sharevb-docker-realease.yml diff --git a/.github/workflows/docker-nightly-release.yml b/.github/workflows/sharevb-docker-nightly-release.yml similarity index 87% rename from .github/workflows/docker-nightly-release.yml rename to .github/workflows/sharevb-docker-nightly-release.yml index 41dbb155..eb20b9e8 100644 --- a/.github/workflows/docker-nightly-release.yml +++ b/.github/workflows/sharevb-docker-nightly-release.yml @@ -63,12 +63,6 @@ jobs: username: ${{ github.repository_owner }} password: ${{ secrets.GITHUB_TOKEN }} - - name: Login to Docker Hub - uses: docker/login-action@v3 - with: - username: ${{ secrets.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_TOKEN }} - - name: Set up QEMU uses: docker/setup-qemu-action@v3 @@ -83,5 +77,4 @@ jobs: platforms: linux/amd64,linux/arm64 push: true tags: | - corentinth/it-tools:nightly - ghcr.io/corentinth/it-tools:nightly + ghcr.io/sharevb/it-tools:nightly diff --git a/.github/workflows/sharevb-docker-realease.yml b/.github/workflows/sharevb-docker-realease.yml new file mode 100644 index 00000000..52cdd8c4 --- /dev/null +++ b/.github/workflows/sharevb-docker-realease.yml @@ -0,0 +1,67 @@ +name: Build and Push Docker Image + +on: + push: + branches: + - chore/all-my-stuffs + +jobs: + ci: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - run: corepack enable + - uses: actions/setup-node@v3 + with: + node-version: 20 + cache: 'pnpm' + + - name: Install dependencies + run: pnpm i + + - name: Run linters + run: pnpm lint + + - name: Run unit tests + run: pnpm test + + - name: Build the app + run: pnpm build + + build: + runs-on: ubuntu-latest + needs: + - ci + steps: + # Checkout the repository + - name: Checkout repository + uses: actions/checkout@v3 + + # Set up Docker Buildx (to support multi-platform builds) + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + + # Log in to GitHub Container Registry (GHCR) + - name: Log in to GitHub Container Registry + uses: docker/login-action@v2 + with: + registry: ghcr.io + username: ${{ github.repository_owner }} + password: ${{ secrets.GITHUB_TOKEN }} + + # Build and push the Docker image + - name: Build and push Docker image + uses: docker/build-push-action@v5 + with: + context: . + push: true + tags: ghcr.io/${{ github.repository_owner }}/it-tools:latest + # Optionally add version tags or specific branch tags like: + # tags: | + # ghcr.io/${{ github.repository_owner }}/your-repo-name:latest + # ghcr.io/${{ github.repository_owner }}/your-repo-name:${{ github.sha }} + + # Optionally log out + - name: Log out from GitHub Container Registry + run: docker logout ghcr.io \ No newline at end of file diff --git a/components.d.ts b/components.d.ts index e4accd6b..82f99f7c 100644 --- a/components.d.ts +++ b/components.d.ts @@ -274,13 +274,10 @@ declare module '@vue/runtime-core' { NProgress: typeof import('naive-ui')['NProgress'] NRadio: typeof import('naive-ui')['NRadio'] NRadioGroup: typeof import('naive-ui')['NRadioGroup'] - NRadio: typeof import('naive-ui')['NRadio'] - NRadioGroup: typeof import('naive-ui')['NRadioGroup'] NScrollbar: typeof import('naive-ui')['NScrollbar'] NSelect: typeof import('naive-ui')['NSelect'] NSlider: typeof import('naive-ui')['NSlider'] NSpace: typeof import('naive-ui')['NSpace'] - NSpace: typeof import('naive-ui')['NSpace'] NSpin: typeof import('naive-ui')['NSpin'] NStatistic: typeof import('naive-ui')['NStatistic'] NSwitch: typeof import('naive-ui')['NSwitch']