File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55 tags :
66 - ' *'
77
8+ env :
9+ TAG : $GITHUB_REF_NAME
10+ ORG : odissei
11+
812jobs :
913 push :
1014 name : Push to registry.
1115 runs-on : ubuntu-latest
12- # needs: test
1316 steps :
1417 - name : Checkout repo
15- uses : actions/checkout@v3
16- - name : Set python version
17- uses : actions/setup-python@v4
18- with :
19- python-version : ' 3.9.14'
20- - name : Perform gruesome hack
21- run : |
22- cp -r pyproject.toml src/stub.toml
23- - name : Get version and tag image
24- run : |
25- pip install tomli
26- cd src/
27- echo "version=`python version.py`" >> $GITHUB_ENV
18+ uses : actions/checkout@v4
19+
2820 - name : Login to registry
29- uses : docker/login-action@v2
21+ uses : docker/login-action@v3
3022 with :
3123 username : ${{ secrets.DOCKER_HUB_USERNAME }}
3224 password : ${{ secrets.DOCKER_HUB_ACCESS_PASSWORD }}
33- - name : Push to dockerhub
34- run : |
35- docker build . --file Dockerfile --tag fjodorvr/dataverse-mapper:${{ env.version }}
36- docker push fjodorvr/dataverse-mapper:${{ env.version }}
25+
26+ - name : Build and push Prefect Worker Image
27+ uses : docker/build-push-action@v5
28+ with :
29+ context : .
30+ file : Dockerfile
31+ push : true
32+ tags : ${{ env.ORG }}/dataverse-mapper:${{ github.ref_name }}
You can’t perform that action at this time.
0 commit comments