Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Push latest pyPESTO (develop) build as image with tag latest to docker.io #1083

Merged
merged 13 commits into from
Nov 28, 2024
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_PASSWORD }}

- 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