Skip to content

Commit

Permalink
chore: manual image push (#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
renaudjester authored Jun 7, 2024
1 parent 608c333 commit feec233
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/push-docker-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Push Docker Image on DockerHub

on: workflow_dispatch

jobs:
push-docker-image:
runs-on: self-hosted
timeout-minutes: 10

steps:
- name: Check out code
uses: actions/checkout@v4

- uses: mamba-org/setup-micromamba@v1
with:
micromamba-version: '1.5.6-0'
micromamba-binary-path: ${{ runner.temp }}/bin/micromamba
environment-file: conda_environment.yaml
environment-name: copernicusmarine
condarc-file: .condarc
cache-environment: true
post-cleanup: 'all'

- name: Set VERSION environment variable
id: set-version
shell: micromamba-shell {0}
run: echo "VERSION=$(poetry version --short)" >> $GITHUB_OUTPUT

- name: Build and publish Docker image
shell: micromamba-shell {0}
env:
VERSION: ${{ steps.set-version.outputs.VERSION }}
DOCKER_HUB_USERNAME: ${{ secrets.DOCKER_HUB_USERNAME }}
DOCKER_HUB_PUSH_TOKEN: ${{ secrets.DOCKER_HUB_PUSH_TOKEN }}
run: make build-and-publish-dockerhub-image
4 changes: 4 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ jobs:
timeout: 600000
interval: 5000

- name: Wait 30sec for the version to be in pip
run: sleep 30s
shell: bash

- name: Build and publish Docker image
shell: micromamba-shell {0}
env:
Expand Down

0 comments on commit feec233

Please sign in to comment.