File tree Expand file tree Collapse file tree 2 files changed +39
-0
lines changed Expand file tree Collapse file tree 2 files changed +39
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Push Docker Image on DockerHub
2
+
3
+ on : workflow_dispatch
4
+
5
+ jobs :
6
+ push-docker-image :
7
+ runs-on : self-hosted
8
+ timeout-minutes : 10
9
+
10
+ steps :
11
+ - name : Check out code
12
+ uses : actions/checkout@v4
13
+
14
+ - uses : mamba-org/setup-micromamba@v1
15
+ with :
16
+ micromamba-version : ' 1.5.6-0'
17
+ micromamba-binary-path : ${{ runner.temp }}/bin/micromamba
18
+ environment-file : conda_environment.yaml
19
+ environment-name : copernicusmarine
20
+ condarc-file : .condarc
21
+ cache-environment : true
22
+ post-cleanup : ' all'
23
+
24
+ - name : Set VERSION environment variable
25
+ id : set-version
26
+ shell : micromamba-shell {0}
27
+ run : echo "VERSION=$(poetry version --short)" >> $GITHUB_OUTPUT
28
+
29
+ - name : Build and publish Docker image
30
+ shell : micromamba-shell {0}
31
+ env :
32
+ VERSION : ${{ steps.set-version.outputs.VERSION }}
33
+ DOCKER_HUB_USERNAME : ${{ secrets.DOCKER_HUB_USERNAME }}
34
+ DOCKER_HUB_PUSH_TOKEN : ${{ secrets.DOCKER_HUB_PUSH_TOKEN }}
35
+ run : make build-and-publish-dockerhub-image
Original file line number Diff line number Diff line change 61
61
timeout : 600000
62
62
interval : 5000
63
63
64
+ - name : Wait 30sec for the version to be in pip
65
+ run : sleep 30s
66
+ shell : bash
67
+
64
68
- name : Build and publish Docker image
65
69
shell : micromamba-shell {0}
66
70
env :
You can’t perform that action at this time.
0 commit comments