Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 15 additions & 19 deletions .github/workflows/image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,32 +5,28 @@ on:
tags:
- '*'

env:
TAG: $GITHUB_REF_NAME
ORG: odissei

jobs:
push:
name: Push to registry.
runs-on: ubuntu-latest
# needs: test
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Set python version
uses: actions/setup-python@v4
with:
python-version: '3.9.14'
- name: Perform gruesome hack
run: |
cp -r pyproject.toml src/stub.toml
- name: Get version and tag image
run: |
pip install tomli
cd src/
echo "version=`python version.py`" >> $GITHUB_ENV
uses: actions/checkout@v4

- name: Login to registry
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_PASSWORD }}
- name: Push to dockerhub
run: |
docker build . --file Dockerfile --tag fjodorvr/dataverse-mapper:${{ env.version }}
docker push fjodorvr/dataverse-mapper:${{ env.version }}

- name: Build and push Prefect Worker Image
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile
push: true
tags: ${{ env.ORG }}/dataverse-mapper:${{ github.ref_name }}
Loading