Skip to content

Commit 1ff5efe

Browse files
authored
Docker image nightly builds (#48)
1 parent 6b84065 commit 1ff5efe

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Nightly Docker Build
2+
on:
3+
schedule:
4+
- cron: "0 3 * * *"
5+
workflow_dispatch: # allows manual trigger
6+
permissions:
7+
contents: read
8+
packages: write
9+
jobs:
10+
build:
11+
runs-on: ubuntu-24.04
12+
steps:
13+
- name: Checkout repository
14+
uses: actions/checkout@v3
15+
16+
- name: Log in to GHCR
17+
uses: docker/login-action@v2
18+
with:
19+
registry: ghcr.io
20+
username: ${{ github.actor }}
21+
password: ${{ secrets.GITHUB_TOKEN }}
22+
23+
- name: Build and push multi-platform image
24+
run: |
25+
docker buildx build \
26+
--platform linux/amd64,linux/arm64 \
27+
--push \
28+
-t ghcr.io/gufolabs/noc:master \
29+
--target code \
30+
.

0 commit comments

Comments
 (0)