Skip to content

Commit

Permalink
Merge pull request #355 from smart-on-fhir/mikix/docker-major-version
Browse files Browse the repository at this point in the history
docker: tag releases with the major version number too
  • Loading branch information
mikix authored Oct 29, 2024
2 parents ab6caa3 + fdb57ae commit 0619163
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/docker-hub.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,23 @@ jobs:
name: Build and push image
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

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

- name: Grab version
run: echo "ETL_VERSION=$(grep __version__ cumulus_etl/__init__.py | cut -d'"' -f2)" >> $GITHUB_ENV

- name: Get Docker metadata
id: meta
uses: docker/metadata-action@v5
with:
flavor: latest=true
images: smartonfhir/cumulus-etl
tags: |
type=ref,event=branch
type=pep440,pattern={{major}},value=${{ env.ETL_VERSION }}
- name: Log in to Docker Hub
uses: docker/login-action@v3
Expand Down

0 comments on commit 0619163

Please sign in to comment.