Skip to content

clone submodules

clone submodules #27

name: Build API Container
on:
push:
branches:
- main
workflow_dispatch:
env:
REGISTRY: ghcr.io
REPO: pipeittodevnull
IMAGE: bsod-api
jobs:
build_and_push:
runs-on: windows-2022
permissions:
packages: write
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
submodules: true
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
run: |
docker build -t ${{ env.REGISTRY }}/${{ env.REPO }}/${{ env.IMAGE}}:latest api/
docker push ${{ env.REGISTRY }}/${{ env.REPO }}/${{ env.IMAGE}}:latest