Skip to content

Commit

Permalink
Merge pull request #319 from mnot/mnot/317
Browse files Browse the repository at this point in the history
Call docker-image workflow from publish
  • Loading branch information
mnot authored Sep 18, 2023
2 parents cc5a9ac + 262ce06 commit 7b910ba
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
name: Docker Image CI
name: Docker image publication

on:
workflow_dispatch: # Allow manual triggers from the Actions tab.
push:
tags: [ 'v*.*.*' ] # Publish semver tags as releases.
workflow_call

env:
REGISTRY: ghcr.io
Expand All @@ -12,13 +10,13 @@ env:


jobs:
build:
publish-docker-image:

runs-on: ubuntu-latest
permissions:
contents: read
packages: write
id-token: write
id-token: write

steps:
- name: Checkout
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,3 +97,8 @@ jobs:
path: dist/
- name: Publish distribution to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

publish-docker-image:
uses: ./.github/workflows/docker-image.yml
needs:
- release

0 comments on commit 7b910ba

Please sign in to comment.