This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
name: Build and publish Docker Image
|
name: Build Docker Image
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
@@ -7,7 +7,7 @@ on:
|
|||||||
pull_request:
|
pull_request:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
helm-lint:
|
build:
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
steps:
|
steps:
|
||||||
- name: Clone repo
|
- name: Clone repo
|
||||||
@@ -24,7 +24,8 @@ jobs:
|
|||||||
|
|
||||||
- name: Build and tag Docker image
|
- name: Build and tag Docker image
|
||||||
run: |
|
run: |
|
||||||
COMMIT_HASH="${GITHUB_SHA::7}" # short SHA
|
cd "$GITHUB_WORKSPACE"
|
||||||
|
COMMIT_HASH="${GITHUB_SHA::7}"
|
||||||
REGISTRY="${GITHUB_SERVER_URL#https://}"
|
REGISTRY="${GITHUB_SERVER_URL#https://}"
|
||||||
IMAGE="$REGISTRY/$GITHUB_REPOSITORY/duino-coin"
|
IMAGE="$REGISTRY/$GITHUB_REPOSITORY/duino-coin"
|
||||||
echo "Building Docker image with tags: latest and $COMMIT_HASH"
|
echo "Building Docker image with tags: latest and $COMMIT_HASH"
|
||||||
|
Reference in New Issue
Block a user