Skip to content

Commit

Permalink
Merge pull request #6 from ljocha/hub
Browse files Browse the repository at this point in the history
Github action to build docker image
  • Loading branch information
Jan8be authored Apr 12, 2024
2 parents d3ca6f4 + e1a5630 commit 71072a7
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 1 deletion.
28 changes: 28 additions & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#! vim: ts=2 expandtab:

name: docker

on: [ workflow_dispatch, pull_request, push ]

jobs:
docker-build:
runs-on: ubuntu-latest

steps:
- name: ghcr.io login
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Repo lowercase
id: lc
run: |
repo="${{ github.repository }}"
echo "repo=${repo,,}" >>$GITHUB_OUTPUT
- name: Build and push
uses: docker/build-push-action@v5
with:
push: true
tags: ghcr.io/${{ steps.lc.outputs.repo }}:latest
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
image=cerit.io/ljocha/metadynminer
#image?=cerit.io/ljocha/metadynminer
image?=ghcr.io/jan8be/metadynminer.py
tag=latest

ns=metadynminer-ns
Expand Down
1 change: 1 addition & 0 deletions helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ hub:
pre-spawn-hook: blabla
config:
notebookImage: bubububu
imagePullPolicy: Always
# Authenticator:
# allowed_users: []
# blocked_users: []
Expand Down

0 comments on commit 71072a7

Please sign in to comment.