From fdb57ae98dca37f3ac8e0216de767837150c4782 Mon Sep 17 00:00:00 2001 From: Michael Terry Date: Tue, 29 Oct 2024 09:59:32 -0400 Subject: [PATCH] docker: tag releases with the major version number too --- .github/workflows/docker-hub.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/docker-hub.yaml b/.github/workflows/docker-hub.yaml index ac64798..a09dcf9 100644 --- a/.github/workflows/docker-hub.yaml +++ b/.github/workflows/docker-hub.yaml @@ -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