Skip to content

Commit

Permalink
Merge pull request #51 from LewisResearchGroup/develop
Browse files Browse the repository at this point in the history
Docker
  • Loading branch information
sorenwacker authored Jul 29, 2024
2 parents 392aedf + 970ef6c commit 7aa0ed0
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,27 @@ name: Docker Image CI
on:
push:
branches:
- dockerhub
- dockerhub # Trigger workflow on pushes to the dockerhub branch
release:
types: [published]
workflow_dispatch: # Allows manual triggering if needed
types: [published] # Trigger workflow on new releases
workflow_dispatch: # Allows manual triggering from GitHub UI

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Checkout code
uses: actions/checkout@v3

- name: Docker login
env:
DOCKER_USER: ${{ secrets.DOCKER_USER }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
run: |
echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_USER }}" --password-stdin
run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_USER }}" --password-stdin

- name: Build Docker Image
run: docker build . --file Dockerfile --tag your-docker-repo/your-image:latest --no-cache

- name: Push Docker Image
run: docker push your-docker-repo/your-image:latest
7 changes: 5 additions & 2 deletions .github/workflows/pythonpackage.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
name: Python package

on: [push]

on:
push:
branches:
- develop

jobs:
build:

Expand Down

0 comments on commit 7aa0ed0

Please sign in to comment.