Tags docker build with release tag (#122)

Co-authored-by: Chris Hills <31041837+chrishills@users.noreply.github.com>
This commit is contained in:
Chris Anderson 2023-04-12 07:56:21 -05:00 committed by GitHub
parent e47dd7e916
commit db83ff9ea6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 5 deletions

View file

@ -2,8 +2,6 @@ name: Create & Publish Docker Image
on:
push:
branches:
- "main"
tags:
- "v*.*.*"
@ -34,4 +32,5 @@ jobs:
- name: Build the Docker Image
run: |
npm run docker:build:push
npm run docker:build:push --tag=$(echo ${GITHUB_REF_NAME:1})

View file

@ -52,7 +52,7 @@
"build": "tsc --build",
"lint": "eslint --ext .ts --max-warnings 0 src/",
"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",
"migration:create": "node ./scripts/create-migration.mjs"
},

View file

@ -40,7 +40,7 @@
"test": "react-scripts test",
"eject": "react-scripts eject",
"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"
},
"browserslist": {