jupyter-simple/.github/workflows/docker-publish.yml

39 lines
906 B
YAML

name: Docker
on:
#schedule:
# - cron: '45 4 * * *'
push:
branches: [ "main" ]
env:
REGISTRY: ghcr.io
IMAGE_NAME: jupyter-simple
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
id-token: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup Qemu
uses: docker/setup-qemu-action@v2.0.0
- name: Log into registry ${{ env.REGISTRY }}
uses: docker/login-action@v2.0.0
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}
- name: Setup Buildx
uses: docker/setup-buildx-action@v2.0.0
- name: Build and push Docker image
id: build-and-push
uses: docker/build-push-action@v3.1.1
with:
push: true
tags: maffsie/${{ env.IMAGE_NAME }}:latest