feat(branches): prepare for dev branch
This commit is contained in:
parent
0f76b92d88
commit
8c46f9c775
3 changed files with 42 additions and 2 deletions
39
.forgejo/workflows/build-dev.yaml
Normal file
39
.forgejo/workflows/build-dev.yaml
Normal file
|
@ -0,0 +1,39 @@
|
|||
name: build dev image
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- dev
|
||||
|
||||
jobs:
|
||||
build-dev:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Login to Docker Hub
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
username: ${{ secrets.DOCKER_USER }}
|
||||
password: ${{ secrets.DOCKER_ACCESS_TOKEN }}
|
||||
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v3
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
with:
|
||||
endpoint: tcp://forgejo-docker-in-docker-1:2375
|
||||
platforms: linux/amd64,linux/arm64,linux/arm/v7
|
||||
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
context: ./docker-build/
|
||||
file: ./docker-build/Dockerfile
|
||||
platforms: linux/amd64,linux/arm64,linux/arm/v7
|
||||
push: true
|
||||
cleanup: true
|
||||
tags: |
|
||||
${{ secrets.DOCKER_USER }}/docker-owndyndns-netcup:dev
|
|
@ -1,4 +1,4 @@
|
|||
name: build container image
|
||||
name: build image
|
||||
|
||||
on:
|
||||
push:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue