Skip to content

Commit

Permalink
Set the image name in the release ci workflow
Browse files Browse the repository at this point in the history
I tried to be clever and get it from the github context, but I
don't want the '-docker' at the end of the repository name.
  • Loading branch information
mdpiper committed Aug 30, 2024
1 parent 655fb43 commit 30ea0e5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
- 'v[0-9]+.[0-9]+.[0-9]+'
- '!v[0-9]+.[0-9]+.[0-9]+[ab][0-9]+'

env:
REPO: csdms/bmi-example-python

jobs:

build-and-push:
Expand All @@ -32,4 +35,4 @@ jobs:
with:
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ github.repository }}:latest,${{ github.repository }}:${{ steps.vars.outputs.version }}
tags: ${REPO}:latest,${REPO}:${{ steps.vars.outputs.version }}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Copy/paste this URL into a browser to view and run the example notebooks.
## Developer notes

A versioned, multiplatform image built from this repository is hosted on Docker Hub
at [csdms/bmi-example-python](https://hub.docker.com/repository/docker/csdms/bmi-example-python-docker/).
at [csdms/bmi-example-python](https://hub.docker.com/repository/docker/csdms/bmi-example-python/).
This image is automatically built and pushed to Docker Hub
with the [release](./.github/workflows/release.yml) CI workflow.
The workflow is only run when the repository is tagged.
Expand Down

0 comments on commit 30ea0e5

Please sign in to comment.