Try string type.

This commit is contained in:
2024-03-05 09:12:33 -07:00
parent 15a4d96fbe
commit 0518d3631a

View File

@@ -13,19 +13,19 @@ on:
description: True if the image should be pushed after building
required: false
default: false
type: boolean
type: string # really boolean
jobs:
build:
runs-on: cjyar-24
steps:
- name: docker login
if: ${{ inputs.push == true }}
if: ${{ inputs.push == 'true' }}
run: docker login -u cjyar -p "${{ secrets.DOCKER_TOKEN }}"
- uses: actions/checkout@v4
- name: build
run: docker build -t ${{ inputs.image_name }}:${{ github.run_number }} .
- name: push
if: ${{ inputs.push == true }}
if: ${{ inputs.push == 'true' }}
run: |
docker create --name run_${{ github.run_number }} ${{ inputs.image_name }}:${{ github.run_number }}
docker export -o /tmp/image run_${{ github.run_number }}