Skip to content

Commit

Permalink
add gha
Browse files Browse the repository at this point in the history
  • Loading branch information
PipeItToDevNull committed Nov 2, 2024
1 parent 7921f23 commit e0a5d53
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
33 changes: 33 additions & 0 deletions .github/workflows/Build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Build

on:
push:
branches:
- main
workflow_dispatch:

env:
REGISTRY: ghcr.io
REPO: pipeittodevnull
IMAGE: bsod-api

jobs:
build:
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 .
docker push ${{ env.REGISTRY }}/${{ env.REPO }}/${{ env.IMAGE}}:latest
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,7 @@ RUN npm install
EXPOSE 3000

# Start the application
CMD ["node", "api.js"]
CMD ["node", "api.js"]

LABEL org.opencontainers.image.source https://github.com/PipeItToDevNull/bsod-api
LABEL org.opencontainers.image.description A BSOD debug API using WinDebug-Container

0 comments on commit e0a5d53

Please sign in to comment.