mirror of
https://github.com/bryangerlach/rdgen.git
synced 2025-11-29 08:33:23 +00:00
changed docker-build action
This commit is contained in:
12
.github/workflows/docker-build.yml
vendored
12
.github/workflows/docker-build.yml
vendored
@@ -8,10 +8,6 @@ on:
|
|||||||
tags:
|
tags:
|
||||||
- 'v*.*.*'
|
- 'v*.*.*'
|
||||||
|
|
||||||
env:
|
|
||||||
CREATE_IMAGE: "true"
|
|
||||||
IMAGE_TAG: "dev"
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -19,13 +15,13 @@ jobs:
|
|||||||
- name: set docker image tag
|
- name: set docker image tag
|
||||||
run: |
|
run: |
|
||||||
if [[ "${{ github.ref }}" == "refs/heads/dev" ]]; then
|
if [[ "${{ github.ref }}" == "refs/heads/dev" ]]; then
|
||||||
echo "IMAGE_TAG=dev" >> $GITHUB_ENV
|
echo "IMAGE_TAG=dev" >> "$GITHUB_ENV"
|
||||||
echo "CREATE_IMAGE=true" >> $GITHUB_ENV
|
echo "CREATE_IMAGE=true" >> "$GITHUB_ENV"
|
||||||
elif [[ "${{ github.ref_type }}" == "tag" ]]; then
|
elif [[ "${{ github.ref_type }}" == "tag" ]]; then
|
||||||
echo "IMAGE_TAG=${{ github.ref_name }}"
|
echo "IMAGE_TAG=${{ github.ref_name }}"
|
||||||
echo "CREATE_IMAGE=true" >> $GITHUB_ENV
|
echo "CREATE_IMAGE=true" >> "$GITHUB_ENV"
|
||||||
else
|
else
|
||||||
echo "CREATE_IMAGE=false" >> $GITHUB_ENV
|
echo "CREATE_IMAGE=false" >> "$GITHUB_ENV"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Login to Docker Hub
|
- name: Login to Docker Hub
|
||||||
|
|||||||
Reference in New Issue
Block a user