Skip to content

Commit 0619163

Browse files
authored
Merge pull request #355 from smart-on-fhir/mikix/docker-major-version
docker: tag releases with the major version number too
2 parents ab6caa3 + fdb57ae commit 0619163

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/docker-hub.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,23 @@ jobs:
1212
name: Build and push image
1313
runs-on: ubuntu-latest
1414
steps:
15+
- uses: actions/checkout@v4
16+
1517
- name: Set up Docker Buildx
1618
uses: docker/setup-buildx-action@v3
1719

20+
- name: Grab version
21+
run: echo "ETL_VERSION=$(grep __version__ cumulus_etl/__init__.py | cut -d'"' -f2)" >> $GITHUB_ENV
22+
1823
- name: Get Docker metadata
1924
id: meta
2025
uses: docker/metadata-action@v5
2126
with:
2227
flavor: latest=true
2328
images: smartonfhir/cumulus-etl
29+
tags: |
30+
type=ref,event=branch
31+
type=pep440,pattern={{major}},value=${{ env.ETL_VERSION }}
2432
2533
- name: Log in to Docker Hub
2634
uses: docker/login-action@v3

0 commit comments

Comments
 (0)