homebox/.github/workflows/publish.yaml
Hayden 508e2e59bd
tests: improve repo package coverage (#3)
* refactor and add repo tests

* add CI name

* use atomic for test shutdown

* use go 1.19

* add timeout
2022-09-05 00:26:21 -08:00

23 lines
623 B
YAML

name: Build Docker Image
on:
push:
branches: [master]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.19
- name: login to container registry
run: docker login ghcr.io --username hay-kot --password $CR_PAT
env:
CR_PAT: ${{ secrets.CR_PAT }}
- name: Build Docker Image
run: cd backend && docker build -t ghcr.io/hay-kot/content:latest .
- name: push to container registry
run: docker push ghcr.io/hay-kot/content:latest