Skip to content
This repository was archived by the owner on May 4, 2026. It is now read-only.

Commit 1d681dd

Browse files
authored
Add GitHub Actions workflow for dev image build
1 parent c4b0b8e commit 1d681dd

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Build dev image (manual)
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
build:
8+
runs-on: ubuntu-latest
9+
# Only allow running on the dev branch
10+
if: github.ref == 'refs/heads/dev'
11+
12+
steps:
13+
- name: Checkout dev branch
14+
uses: actions/checkout@v4
15+
16+
- name: Set up Docker Buildx
17+
uses: docker/setup-buildx-action@v3
18+
19+
- name: Login to GitHub Container Registry
20+
uses: docker/login-action@v3
21+
with:
22+
registry: ghcr.io
23+
username: ${{ github.actor }}
24+
password: ${{ secrets.GITHUB_TOKEN }}
25+
26+
- name: Build and push :dev image
27+
uses: docker/build-push-action@v6
28+
with:
29+
context: .
30+
push: true
31+
tags: ghcr.io/${{ github.repository }}:dev
32+
cache-from: type=gha
33+
cache-to: type=gha,mode=max

0 commit comments

Comments
 (0)