Skip to content

Commit

Permalink
Update composite action
Browse files Browse the repository at this point in the history
  • Loading branch information
cansavvy committed Jan 7, 2025
1 parent 169f336 commit 9f1fcd3
Showing 1 changed file with 26 additions and 27 deletions.
53 changes: 26 additions & 27 deletions .github/workflows/action.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,31 @@
# Candace Savonen Apr 2022

name: Build Docker Image

description: "Build and push from a dockerfile in the repository"
on:
workflow_call:
inputs:
directory:
description: 'What's the file path to this Dockerfile's folder in this repo'
required: true
type: string
tag:
description: 'What is this called on Dockerhub? e.g. jhudsl/base_ottr'
required: true
type: string
dockerhubpush:
description: 'Should this be pushed to Dockerhub?'
required: false
default: 'false'
type: string
token:
description: 'A GitHub Personal Access Token'
required: false
dockerhub_username:
description: 'A Dockerhub username that has access to this image'
required: false
dockerhub_token:
description: 'A Dockerhub token that has persmissions to push to this image'
required: false
inputs:
directory:
description: 'What's the file path to this Dockerfile's folder in this repo'
required: true
type: string
tag:
description: 'What is this called on Dockerhub? e.g. jhudsl/base_ottr'
required: true
type: string
dockerhubpush:
description: 'Should this be pushed to Dockerhub?'
required: false
default: 'false'
type: string
token:
description: 'A GitHub Personal Access Token'
required: false
dockerhub_username:
description: 'A Dockerhub username that has access to this image'
required: false
dockerhub_token:
description: 'A Dockerhub token that has persmissions to push to this image'
required: false

runs:
using: "composite"
Expand All @@ -44,8 +43,8 @@ runs:
if: ${{ inputs.dockerhubpush != 'false' }}
uses: docker/login-action@v3
with:
username: ${{ inputs.DOCKERHUB_USERNAME }}
password: ${{ inputs.DOCKERHUB_TOKEN }}
username: ${{ inputs.dockerhub_username }}
password: ${{ inputs.dockerhub_token }}

- name: Build
uses: docker/build-push-action@v6
Expand Down

0 comments on commit 9f1fcd3

Please sign in to comment.