Skip to content

Merge pull request #6 from PipeItToDevNull/4-download-files-as-a-spec… #22

Merge pull request #6 from PipeItToDevNull/4-download-files-as-a-spec…

Merge pull request #6 from PipeItToDevNull/4-download-files-as-a-spec… #22

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
- 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