1
0
forked from shaytan/rdgen

changed docker-build action

This commit is contained in:
Bryan Gerlach
2025-02-01 14:58:36 -06:00
parent c72789e47b
commit cbe0b9b3d5

View File

@@ -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