Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 36 additions & 4 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,18 @@ jobs:
contents: write
packages: write

#environment:
# name: docker
# url: https://hub.docker.com/r/${{ github.repository }}

steps:
- name: "Checkout"
uses: actions/checkout@v6

- name: "Debug event.json"
continue-on-error: true
run: cat "${GITHUB_EVENT_PATH}"
- name: "Debug CTX github"
if: ${{ !github.event.act }}
continue-on-error: true
env:
GITHUB_CTX: ${{ toJSON(github) }}
Expand All @@ -42,16 +51,28 @@ jobs:
echo "inputs.dev: ${{ inputs.dev }}"
echo "env.dev: ${{ env.dev }}"

- name: "Checkout"
uses: actions/checkout@v6
- name: "Update Package Version"
uses: cssnr/update-json-value-action@v2
with:
file: "package.json"

- name: "Debug Package File"
continue-on-error: true
run: cat package.json

- name: "Docker Login"
- name: "Docker Login - GHCR"
uses: docker/login-action@v4
with:
registry: ghcr.io
username: ${{ vars.GHCR_USER }}
password: ${{ secrets.GHCR_PASS }}

#- name: "Docker Login - Hub"
# uses: docker/login-action@v4
# with:
# username: ${{ vars.DOCKER_HUB_USER }}
# password: ${{ secrets.DOCKER_HUB_PASS }}

- name: "Setup QEMU"
uses: docker/setup-qemu-action@v4

Expand Down Expand Up @@ -82,6 +103,9 @@ jobs:
uses: cssnr/docker-tags-action@v2
with:
images: "ghcr.io/${{ github.repository }}"
#images: |
# ${{ github.repository }}
# ghcr.io/${{ github.repository }}
tags: |
${{ env.dev }}
${{ steps.version.outputs.tags }}
Expand Down Expand Up @@ -109,6 +133,14 @@ jobs:
build-args: |
VERSION=${{ github.ref_name }}

#- name: "Docker Hub Description"
# uses: peter-evans/dockerhub-description@v5
# continue-on-error: true
# with:
# username: ${{ vars.DOCKER_HUB_USER }}
# password: ${{ secrets.DOCKER_HUB_PASS }}
# repository: ${{ github.repository }}

- name: "Send Failure Notification"
if: ${{ failure() }}
uses: sarisia/actions-status-discord@eb045afee445dc055c18d3d90bd0f244fd062708 # v1.16.0
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,14 @@ jobs:
VERSION: "${{ env.version }}"
STACK_NAME: "${{ env.stack-name }}"
TRAEFIK_HOST: "${{ env.traefik-host }}"
GITHUB_TOKEN": "${{ secrets.GH_PAT }}"
VT_API_KEY": "${{ secrets.VT_API_KEY }}"
SENTRY_URL": "${{ secrets.SENTRY_URL }}"
SENTRY_ENVIRONMENT": "prod"
INFLUX_URL": "${{ secrets.INFLUX_URL }}"
INFLUX_TOKEN": "${{ secrets.INFLUX_TOKEN }}"
INFLUX_ORG": "${{ vars.INFLUX_ORG }}"
INFLUX_BUCKET": "${{ vars.INFLUX_BUCKET }}
GITHUB_TOKEN: "${{ secrets.GH_PAT }}"
VT_API_KEY: "${{ secrets.VT_API_KEY }}"
SENTRY_URL: "${{ secrets.SENTRY_URL }}"
SENTRY_ENVIRONMENT: "prod"
INFLUX_URL: "${{ secrets.INFLUX_URL }}"
INFLUX_TOKEN: "${{ secrets.INFLUX_TOKEN }}"
INFLUX_ORG: "${{ vars.INFLUX_ORG }}"
INFLUX_BUCKET: "${{ vars.INFLUX_BUCKET }}"

## https://render.com/docs/deploy-hooks#deploying-from-an-image-registry
#- name: "Deploy Image"
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ jobs:

- name: "eslint"
if: ${{ !cancelled() }}
run: |
npm run lint
run: npm run lint

- name: "prettier"
if: ${{ !cancelled() }}
Expand Down
Loading