Skip to content

dev

dev #712

Workflow file for this run

name: dev
on:
push:
branches: [ main ]
paths:
- '*/Dockerfile'
- '.github/workflows/dev.yml'
pull_request:
branches: [ main ]
paths:
- '*/Dockerfile'
- '.github/workflows/dev.yml'
schedule:
- cron: '0 7 * * *'
workflow_dispatch:
env:
VERSION_RE: main
VERSION_BARESIP: main
jobs:
libre-dev:
env:
IMAGE_NAME: ${{ github.repository }}/libre-dev
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log into registry
uses: docker/login-action@v3
with:
registry: "ghcr.io"
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v6
with:
context: libre
platforms: linux/amd64,linux/arm64
push: true
tags: |
ghcr.io/${{ env.IMAGE_NAME }}:${{ env.VERSION_RE }}
ghcr.io/${{ env.IMAGE_NAME }}:latest
build-args: VERSION=${{ env.VERSION_RE }}
baresip-dev:
env:
IMAGE_NAME: ${{ github.repository }}/baresip-dev
needs: [ "libre-dev" ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log into registry
uses: docker/login-action@v3
with:
registry: "ghcr.io"
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v6
with:
context: baresip
platforms: linux/amd64,linux/arm64
push: true
tags: |
ghcr.io/${{ env.IMAGE_NAME }}:${{ env.VERSION_BARESIP }}
ghcr.io/${{ env.IMAGE_NAME }}:latest
build-args: |
VERSION=${{ env.VERSION_BARESIP }}
IMAGE=ghcr.io/baresip/docker/libre-dev:latest