mirror of
https://fast.feibisi.com/https://github.com/parcelvoy/platform.git
synced 2025-08-29 11:56:04 +08:00
Adds Docker Jobs (#63)
* Start creating action release flow * Updates build workflow * Removes one step * Another try * Tweaks to build paths * Fixes docker ignore * Tweaks to database migration * Removes useless entrypoint * Fixes to database files * More tweaks to build * Tweaks to base URL * Allows for config file to override env * Tweak to order * Next try * Fixes comma error * Another try * Adds a health endpoint * Try Nginx proxy pass * Re-adds environment path * Remove auto build on branch * Linter fixes
This commit is contained in:
parent
8068d4d586
commit
732d8d1f12
20 changed files with 236 additions and 34 deletions
35
.github/workflows/build.yml
vendored
Normal file
35
.github/workflows/build.yml
vendored
Normal file
|
@ -0,0 +1,35 @@
|
|||
name: Create & Publish Docker Image
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- "v*.*.*"
|
||||
|
||||
env:
|
||||
REGISTRY: ghcr.io
|
||||
IMAGE_NAME: ${{ github.repository }}
|
||||
|
||||
jobs:
|
||||
build-and-push-image:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: read
|
||||
packages: write
|
||||
|
||||
steps:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v2
|
||||
|
||||
- name: Log In to the Container Registry
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
registry: ${{ env.REGISTRY }}
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Build the Docker Image
|
||||
run: |
|
||||
npm run docker:build:push
|
Loading…
Add table
Add a link
Reference in a new issue