Skip to content

Commit

Permalink
Push latest pyPESTO (develop) build as image with tag latest to doc…
Browse files Browse the repository at this point in the history
…ker.io (#1083)

* Adding proposal to deploy to docker hub.

* Fix path to Dockerfile.

* Update publish_dockerhub.yml

* Update publish_dockerhub.yml

* Update publish_dockerhub.yml

---------

Co-authored-by: Yannik Schälte <[email protected]>
Co-authored-by: Paul Jonas Jost <[email protected]>
  • Loading branch information
3 people authored Nov 28, 2024
1 parent d1c9e52 commit 7448b92
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/publish_dockerhub.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Build and Push Docker Image

on:
push:
branches:
- main
paths:
- 'docker/**'
- '.github/workflows/docker-publish.yml'
workflow_dispatch:

jobs:
build-and-push:
runs-on: ubuntu-latest

steps:
- name: Check out the repository
uses: actions/checkout@v2

- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}

- name: Build and tag the Docker image
run: |
docker build -t ICB_DCM/pypesto:latest -f docker/Dockerfile .
- name: Push the Docker image to Docker Hub
run: |
docker push ICB_DCM/pypesto:latest

0 comments on commit 7448b92

Please sign in to comment.