homebox/.github/workflows/publish.yaml

24 lines
623 B
YAML
Raw Normal View History

2022-08-30 02:30:36 +00:00
name: Build Docker Image
on:
push:
2022-09-03 09:30:45 +00:00
branches: [master]
2022-08-30 02:30:36 +00:00
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.18
- 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
2022-08-30 02:40:54 +00:00
run: cd backend && docker build -t ghcr.io/hay-kot/content:latest .
2022-08-30 02:30:36 +00:00
- name: push to container registry
2022-08-30 02:40:54 +00:00
run: docker push ghcr.io/hay-kot/content:latest