mirror of
https://github.com/hay-kot/homebox.git
synced 2024-12-19 05:26:31 +00:00
container workflow
This commit is contained in:
parent
e78849b750
commit
6ca7f69fff
1 changed files with 23 additions and 6 deletions
29
.github/workflows/publish.yaml
vendored
29
.github/workflows/publish.yaml
vendored
|
@ -1,8 +1,8 @@
|
||||||
name: Build Docker Image
|
name: Build Nightly
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [master]
|
branches: [main]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
publish:
|
publish:
|
||||||
|
@ -13,11 +13,28 @@ jobs:
|
||||||
uses: actions/setup-go@v2
|
uses: actions/setup-go@v2
|
||||||
with:
|
with:
|
||||||
go-version: 1.19
|
go-version: 1.19
|
||||||
|
|
||||||
|
- name: Set up QEMU
|
||||||
|
id: qemu
|
||||||
|
uses: docker/setup-qemu-action@v1
|
||||||
|
with:
|
||||||
|
image: tonistiigi/binfmt:latest
|
||||||
|
platforms: all
|
||||||
|
|
||||||
|
- name: install buildx
|
||||||
|
id: buildx
|
||||||
|
uses: docker/setup-buildx-action@v1
|
||||||
|
with:
|
||||||
|
install: true
|
||||||
|
|
||||||
- name: login to container registry
|
- name: login to container registry
|
||||||
run: docker login ghcr.io --username hay-kot --password $CR_PAT
|
run: docker login ghcr.io --username hay-kot --password $CR_PAT
|
||||||
env:
|
env:
|
||||||
CR_PAT: ${{ secrets.CR_PAT }}
|
CR_PAT: ${{ secrets.CR_PAT }}
|
||||||
- name: Build Docker Image
|
|
||||||
run: cd backend && docker build -t ghcr.io/hay-kot/content:latest .
|
- name: build the image
|
||||||
- name: push to container registry
|
run: |
|
||||||
run: docker push ghcr.io/hay-kot/content:latest
|
cd backend && docker build --push --no-cache \
|
||||||
|
--tag ghrc.io/hay-kot/homebox:nightly \
|
||||||
|
--build-arg COMMIT=$(git rev-parse HEAD) \
|
||||||
|
--platform linux/amd64,linux/arm64,linux/arm/v7 .
|
||||||
|
|
Loading…
Reference in a new issue