turbopilot/.github/workflows/docker-image.yml
2023-04-10 09:07:53 +01:00

37 lines
1019 B
YAML

name: Docker Image CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2.7.0
- name: Checkout submodules
# You may pin to the exact commit or the version.
# uses: textbook/git-checkout-submodule-action@0cb23c7e6a67085e1dc5e884920bd620f7b9c469
uses: textbook/git-checkout-submodule-action@2.1.1
- name: Publish Docker Image to GitHub Registry
# You may pin to the exact commit or the version.
# uses: TilBlechschmidt/gp-docker-action@f89287d44556dd7d24f76c799cd0795eeb352bcf
uses: TilBlechschmidt/gp-docker-action@v0.2-alpha
with:
# GitHub token to push Docker image to GitHub Packages
github-token: ${{ secrets.GH_TOKEN }}
# Docker Image name
image-name: turbopilot
# Path to the directory where the Dockerfile resides
dockerfile-path: . # optional, default is .