Skip to content

Initial commit

Initial commit #1

Workflow file for this run

name: Publish Docker image to GitHub Packages
on:
push:
branches:
- main
jobs:
build-and-push:
name: Build Docker image
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Check out the repo
uses: actions/checkout@v2
- name: Build Docker image
run: docker build -f Dockerfile --tag ghcr.io/${{ github.repository }}:latest .
- name: Log in to GitHub Docker Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Push Docker image
run: docker push ghcr.io/${{ github.repository }}:latest