From 84b99ce053b090fddfea4f25b39423f445f3e089 Mon Sep 17 00:00:00 2001 From: Sv443 Date: Sat, 13 Jan 2024 00:12:56 +0100 Subject: [PATCH] chore: disable workflows --- .github/workflows/build-deploy-prod.yml | 69 ++++++++++++------------ .github/workflows/build-deploy-stage.yml | 69 ++++++++++++------------ 2 files changed, 70 insertions(+), 68 deletions(-) diff --git a/.github/workflows/build-deploy-prod.yml b/.github/workflows/build-deploy-prod.yml index def23d44..e64e73f4 100644 --- a/.github/workflows/build-deploy-prod.yml +++ b/.github/workflows/build-deploy-prod.yml @@ -14,37 +14,38 @@ jobs: matrix: node-version: [20.x] steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 - with: - node-version: ${{ matrix.node-version }} - - - name: Determine latest version - run: echo "APP_VERSION=$(git describe --tags || git rev-parse --short HEAD)" >> $GITHUB_ENV - - - name: Login to GitHub Container Registry - uses: docker/login-action@v2 - with: - registry: ghcr.io - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} - - - name: Build docker image and push - uses: docker/build-push-action@v4 - with: - context: ./ - file: ./Dockerfile - build-args: APP_VERSION=${{ env.APP_VERSION }} - push: true - tags: ghcr.io/sv443-network/jokeapi:latest - - - name: Delete old packages - uses: actions/delete-package-versions@v4 - with: - package-name: ${{ github.event.repository.name }} - package-type: "container" - min-versions-to-keep: 3 - delete-only-untagged-versions: "true" - - - name: Deploy to prod - run: echo "TODO Trigger prod deployment here" + - run: echo "TODO" + # - uses: actions/checkout@v3 + # - uses: actions/setup-node@v3 + # with: + # node-version: ${{ matrix.node-version }} + + # - name: Determine latest version + # run: echo "APP_VERSION=$(git describe --tags || git rev-parse --short HEAD)" >> $GITHUB_ENV + + # - name: Login to GitHub Container Registry + # uses: docker/login-action@v2 + # with: + # registry: ghcr.io + # username: ${{ github.actor }} + # password: ${{ secrets.GITHUB_TOKEN }} + + # - name: Build docker image and push + # uses: docker/build-push-action@v4 + # with: + # context: ./ + # file: ./Dockerfile + # build-args: APP_VERSION=${{ env.APP_VERSION }} + # push: true + # tags: ghcr.io/sv443-network/jokeapi:latest + + # - name: Delete old packages + # uses: actions/delete-package-versions@v4 + # with: + # package-name: ${{ github.event.repository.name }} + # package-type: "container" + # min-versions-to-keep: 3 + # delete-only-untagged-versions: "true" + + # - name: Deploy to prod + # run: echo "TODO Trigger prod deployment here" diff --git a/.github/workflows/build-deploy-stage.yml b/.github/workflows/build-deploy-stage.yml index f7b4e50f..da812fbd 100644 --- a/.github/workflows/build-deploy-stage.yml +++ b/.github/workflows/build-deploy-stage.yml @@ -14,37 +14,38 @@ jobs: matrix: node-version: [20.x] steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 - with: - node-version: ${{ matrix.node-version }} - - - name: Determine latest version - run: echo "APP_VERSION=$(git describe --tags || git rev-parse --short HEAD)" >> $GITHUB_ENV - - - name: Login to GitHub Container Registry - uses: docker/login-action@v2 - with: - registry: ghcr.io - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} - - - name: Build docker image and push - uses: docker/build-push-action@v4 - with: - context: ./ - file: ./Dockerfile - build-args: APP_VERSION=${{ env.APP_VERSION }} - push: true - tags: ghcr.io/sv443-network/jokeapi-stage:latest - - - name: Delete old packages - uses: actions/delete-package-versions@v4 - with: - package-name: ${{ github.event.repository.name }} - package-type: "container" - min-versions-to-keep: 3 - delete-only-untagged-versions: "true" - - - name: Deploy to stage - run: echo "TODO Trigger stage deployment here" + - run: echo "TODO" + # - uses: actions/checkout@v3 + # - uses: actions/setup-node@v3 + # with: + # node-version: ${{ matrix.node-version }} + + # - name: Determine latest version + # run: echo "APP_VERSION=$(git describe --tags || git rev-parse --short HEAD)" >> $GITHUB_ENV + + # - name: Login to GitHub Container Registry + # uses: docker/login-action@v2 + # with: + # registry: ghcr.io + # username: ${{ github.actor }} + # password: ${{ secrets.GITHUB_TOKEN }} + + # - name: Build docker image and push + # uses: docker/build-push-action@v4 + # with: + # context: ./ + # file: ./Dockerfile + # build-args: APP_VERSION=${{ env.APP_VERSION }} + # push: true + # tags: ghcr.io/sv443-network/jokeapi-stage:latest + + # - name: Delete old packages + # uses: actions/delete-package-versions@v4 + # with: + # package-name: ${{ github.event.repository.name }} + # package-type: "container" + # min-versions-to-keep: 3 + # delete-only-untagged-versions: "true" + + # - name: Deploy to stage + # run: echo "TODO Trigger stage deployment here"