Merge pull request #14 from eodcgmbh/fix_server_config #13
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and Push Docker Image to GHCR | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- jupyterlab/eodc-minimal-notebook.dockerfile # Trigger on pushes to the 'main' branch | |
jobs: | |
build-and-push: | |
runs-on: ubuntu-latest | |
steps: | |
# Check out the code from the repository | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
# Make sure buildx is used | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
# Log in to GitHub Container Registry | |
- name: Log in to GitHub Container Registry | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
# Build and push image | |
- name: Build and push | |
uses: docker/build-push-action@v6 | |
with: | |
context: . | |
push: true | |
tags: ghcr.io/${{ github.repository }}/eodc-minimal-notebook:latest | |
file: jupyterlab/eodc-minimal-notebook.dockerfile |