Skip to content

Commit

Permalink
Testing docker hub ci
Browse files Browse the repository at this point in the history
  • Loading branch information
mikix committed Oct 29, 2024
1 parent 69b6109 commit 5a3ca1e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: CI
on:
pull_request:
# pull_request:
push:
branches:
- main
Expand Down
11 changes: 8 additions & 3 deletions .github/workflows/docker-hub.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Docker Hub
# Currently, we publish every commit to main into Docker hub.
# In the future, we may to trigger off of actual release tags.
on:
pull_request:
push:
branches:
- main
Expand All @@ -12,21 +13,25 @@ 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
run: |
ls
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
flavor: latest=false # MIKE
images: smartonfhir/cumulus-etl
tags: |
type=ref,event=branch
type=pep440,pattern={{major}},value=${{ ETL_VERSION }}
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 5a3ca1e

Please sign in to comment.