mirror of
https://fast.feibisi.com/https://github.com/parcelvoy/platform.git
synced 2025-08-29 11:56:04 +08:00
Tags docker build with release tag (#122)
Co-authored-by: Chris Hills <31041837+chrishills@users.noreply.github.com>
This commit is contained in:
parent
e47dd7e916
commit
db83ff9ea6
3 changed files with 4 additions and 5 deletions
5
.github/workflows/build.yml
vendored
5
.github/workflows/build.yml
vendored
|
@ -2,8 +2,6 @@ name: Create & Publish Docker Image
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
|
||||||
- "main"
|
|
||||||
tags:
|
tags:
|
||||||
- "v*.*.*"
|
- "v*.*.*"
|
||||||
|
|
||||||
|
@ -34,4 +32,5 @@ jobs:
|
||||||
|
|
||||||
- name: Build the Docker Image
|
- name: Build the Docker Image
|
||||||
run: |
|
run: |
|
||||||
npm run docker:build:push
|
npm run docker:build:push --tag=$(echo ${GITHUB_REF_NAME:1})
|
||||||
|
|
||||||
|
|
|
@ -52,7 +52,7 @@
|
||||||
"build": "tsc --build",
|
"build": "tsc --build",
|
||||||
"lint": "eslint --ext .ts --max-warnings 0 src/",
|
"lint": "eslint --ext .ts --max-warnings 0 src/",
|
||||||
"test": "jest --forceExit --runInBand --testTimeout 10000",
|
"test": "jest --forceExit --runInBand --testTimeout 10000",
|
||||||
"docker:build": "docker buildx build -f ./Dockerfile -t ghcr.io/parcelvoy/api:latest ../../",
|
"docker:build": "docker buildx build -f ./Dockerfile -t ghcr.io/parcelvoy/api:latest -t ghcr.io/parcelvoy/api:$npm_config_tag ../../",
|
||||||
"docker:build:push": "npm run docker:build -- --push",
|
"docker:build:push": "npm run docker:build -- --push",
|
||||||
"migration:create": "node ./scripts/create-migration.mjs"
|
"migration:create": "node ./scripts/create-migration.mjs"
|
||||||
},
|
},
|
||||||
|
|
|
@ -40,7 +40,7 @@
|
||||||
"test": "react-scripts test",
|
"test": "react-scripts test",
|
||||||
"eject": "react-scripts eject",
|
"eject": "react-scripts eject",
|
||||||
"lint": "eslint \"src/**/*.{js,jsx,ts,tsx}\"",
|
"lint": "eslint \"src/**/*.{js,jsx,ts,tsx}\"",
|
||||||
"docker:build": "docker buildx build -f ./Dockerfile -t ghcr.io/parcelvoy/ui:latest ../../",
|
"docker:build": "docker buildx build -f ./Dockerfile -t ghcr.io/parcelvoy/ui:latest -t ghcr.io/parcelvoy/ui:$npm_config_tag ../../",
|
||||||
"docker:build:push": "npm run docker:build -- --push"
|
"docker:build:push": "npm run docker:build -- --push"
|
||||||
},
|
},
|
||||||
"browserslist": {
|
"browserslist": {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue