Skip to content

Public release 1.0

Public release 1.0 #5

Workflow file for this run

name: Build Docker Container on Release
on:
release:
types: [created]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
- name: Install dependencies
run: npm install
- name: Build Docker image
run: |
docker build -t ghcr.io/orthdron/subatic:${{ github.ref_name }} .
- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Push Docker image
run: |
docker push ghcr.io/orthdron/subatic:${{ github.ref_name }}