Skip to content

Commit

Permalink
asdf
Browse files Browse the repository at this point in the history
  • Loading branch information
drewhammond committed Nov 2, 2023
1 parent 937200f commit 7779edd
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/build-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ on:
workflow_call:
inputs:
push:
description: Should the images be pushed
description: "Should the images be pushed"
default: true
required: false
type: boolean
version:
description: The version used when tagging the image
description: "The version used when tagging the image"
default: 'dev'
required: false
type: string
Expand All @@ -35,14 +35,12 @@ jobs:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
if: ${{ inputs.push }}

- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
if: ${{ inputs.push }}

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
Expand All @@ -51,7 +49,7 @@ jobs:
uses: docker/build-push-action@v5
with:
platforms: linux/amd64,linux/arm64
push: ${{ inputs.push }}
push: true
tags: |
${{ env.DOCKERHUB_REPO }}:${{ inputs.version }}
${{ env.GHCR_REPO }}:${{ inputs.version }}
Expand Down

0 comments on commit 7779edd

Please sign in to comment.