Skip to content

Commit

Permalink
build(ci): add manual and release triggers for docker images
Browse files Browse the repository at this point in the history
  • Loading branch information
Ravnoor Gill committed Dec 29, 2024
1 parent c4a02e9 commit 854b285
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/docker-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 4,13 @@ on:
push:
branches:
- 'master'
# trigger on release
release:
types: [released]
# manual trigger: 'Actions' -> 'Manually trigger a workflow' in your repository
workflow_dispatch:
inputs:
context: 'manually-triggered'

jobs:
push_to_registry:
Expand All @@ -18,13 25,13 @@ jobs:

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
Expand All @@ -41,8 48,8 @@ jobs:
labels: |
org.opencontainers.image.title="noelTexturesPy"
org.opencontainers.image.description="Dash app to generate textures maps from MRI using Advanced Normalization Tools"
org.opencontainers.image.vendor="Neuroimaging of Epilepsy Laboratory at McGill University"
org.opencontainers.image.vendor="Neuroimaging of Epilepsy Laboratory at McGill University"
- name: Get branch name (merge)
if: github.event_name != 'pull_request'
shell: bash
Expand Down Expand Up @@ -78,4 85,4 @@ jobs:
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
labels: ${{ steps.meta.outputs.labels }}

0 comments on commit 854b285

Please sign in to comment.