Skip to content

Docker image

Docker image #16

Workflow file for this run

name: Docker image
on:
workflow_dispatch:
push:
branches:
- main
schedule:
- cron: '0 0 * * SUN'
env:
DOCKER_IMAGE: ghcr.io/${{ github.repository }}
jobs:
build:
runs-on: windows-2022
steps:
- uses: actions/checkout@v3
- name: Docker login
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Docker build
run: docker build --tag ${env:DOCKER_IMAGE} .
- name: Docker push
run: docker push ${env:DOCKER_IMAGE}