Skip to content

Add Docker image and JupyterLab docker compose. #1

Add Docker image and JupyterLab docker compose.

Add Docker image and JupyterLab docker compose. #1

name: Build and Push Docker Image

Check failure on line 1 in .github/workflows/build-docker-image.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/build-docker-image.yml

Invalid workflow file

(Line: 32, Col: 11): 'tags' is already defined
on:
push:
branches:
- main
paths:
- 'build/dockerfile'
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push docker image
uses: docker/build-push-action@v5
with:
context: ./
dockerfile: build/dockerfile
push: true
tags: ghcr.io/${{ github.repository }}:${{ github.sha }}
tags: ghcr.io/${{ github.repository }}:latest