Skip to content

Commit

Permalink
chore: disable workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
Sv443 committed Jan 12, 2024
1 parent b9c44c1 commit 84b99ce
Show file tree
Hide file tree
Showing 2 changed files with 70 additions and 68 deletions.
69 changes: 35 additions & 34 deletions .github/workflows/build-deploy-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
69 changes: 35 additions & 34 deletions .github/workflows/build-deploy-stage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 84b99ce

Please sign in to comment.