Skip to content

Commit

Permalink
Merge pull request #12 from niwaniwa/feature/docker
Browse files Browse the repository at this point in the history
Change the conditions for executing Actions
  • Loading branch information
niwaniwa authored Nov 20, 2023
2 parents 25aa5cd + 9d27f30 commit a56dc55
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/container-creator.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
name: Build and Push Image (Docker Buildx; GitHub Actions)

on:
push:
tags:
- 'v*'
workflow_dispatch:
inputs:
label:
description: 'container build label'
required: true
type: string

env:
DOCKER_REGISTRY_NAME: ghcr.io
Expand Down Expand Up @@ -44,7 +47,7 @@ jobs:
context: .
push: true
platforms: linux/amd64,linux/arm64
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
tags: ${{ inputs.version }}
labels: ${{ inputs.version }}
cache-from: ${{ env.DOCKER_REGISTRY_NAME }}/${{ env.DOCKER_IMAGE_NAME }}:latest
build-args: BUILDKIT_INLINE_CACHE=1

0 comments on commit a56dc55

Please sign in to comment.