Skip to content

Commit feec233

Browse files
authored
chore: manual image push (#82)
1 parent 608c333 commit feec233

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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

.github/workflows/release.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@ jobs:
6161
timeout: 600000
6262
interval: 5000
6363

64+
- name: Wait 30sec for the version to be in pip
65+
run: sleep 30s
66+
shell: bash
67+
6468
- name: Build and publish Docker image
6569
shell: micromamba-shell {0}
6670
env:

0 commit comments

Comments
 (0)