Skip to content

Commit

Permalink
chore: Docker Workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ybgbob committed Nov 15, 2023
1 parent 53f75ec commit 1337306
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@ jobs:
REACT_APP_DAPP_NAME: mindv05
G_TAG: G-VRYHWMVQ50
REACT_APP_API_DOMAIN: https://api-marketplace.mindpress.io/v1/
REACT_APP_CROSS_CHAIN_FEE: 0.000001
REACT_APP_INITIATE_LIST_FEE: 0.00003
REACT_APP_LIST_FEE_ON_GF: 0.0000036
REACT_APP_LIST_ESTIMATE_FEE_ON_BSC: 0.0000036
REACT_APP_BSC_SEND_GAS_FEE: 10000000000
run: |
pnpm run build
Expand All @@ -73,11 +78,12 @@ jobs:
- name: Push image
run: |
# Strip git ref prefix from version
VERSION=$(echo "${{ github.ref }}" | sed -e 's,.*/\(.*\),\1,')
# VERSION=$(echo "${{ github.ref }}" | sed -e 's,.*/\(.*\),\1,')
VERSION = ${GITHUB_SHA::8}
# Strip "v" prefix from tag name
[[ "${{ github.ref }}" == "refs/tags/"* ]] && VERSION=$(echo $VERSION | sed -e 's/^v//')
# [[ "${{ github.ref }}" == "refs/tags/"* ]] && VERSION=$(echo $VERSION | sed -e 's/^v//')
# Use Docker `latest` tag convention
[ "$VERSION" == "master" ] && VERSION=latest
# [ "$VERSION" == "master" ] && VERSION=latest
echo IMAGE_NAME=$IMAGE_NAME
echo VERSION=$VERSION
docker tag $IMAGE_NAME $IMAGE_NAME:$VERSION
Expand Down

0 comments on commit 1337306

Please sign in to comment.