Skip to content

stable

stable #76

Workflow file for this run

name: stable
on:
push:
branches: [ main ]
paths:
- '*/Dockerfile'
- '.github/workflows/stable.yml'
pull_request:
branches: [ main ]
paths:
- '*/Dockerfile'
- '.github/workflows/stable.yml'
schedule:
- cron: '0 10 2 * *'
workflow_dispatch:
env:
VERSION_RE: v3.9.0
VERSION_BARESIP: v3.9.0
jobs:
libre:
env:
IMAGE_NAME: ${{ github.repository }}/libre
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Log into registry
uses: docker/login-action@v2
with:
registry: "ghcr.io"
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build
run: |
docker build libre -t libre \
--build-arg VERSION=${{ env.VERSION_RE }} \
- name: Tag and Push image
if: github.event_name != 'pull_request'
run: |
docker tag libre ghcr.io/${{ env.IMAGE_NAME }}:${{ env.VERSION_RE }}
docker tag libre ghcr.io/${{ env.IMAGE_NAME }}:latest
docker push ghcr.io/${{ env.IMAGE_NAME }}:${{ env.VERSION_RE }}
docker push ghcr.io/${{ env.IMAGE_NAME }}:latest
baresip:
env:
IMAGE_NAME: ${{ github.repository }}/baresip
needs: [ "libre" ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Log into registry
uses: docker/login-action@v2
with:
registry: "ghcr.io"
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build
run: |
docker build baresip -t baresip \
--build-arg VERSION=${{ env.VERSION_BARESIP }} \
--build-arg IMAGE=ghcr.io/baresip/docker/libre:latest \
- name: Tag and Push image
if: github.event_name != 'pull_request'
run: |
docker tag baresip ghcr.io/${{ env.IMAGE_NAME }}:${{ env.VERSION_BARESIP }}
docker tag baresip ghcr.io/${{ env.IMAGE_NAME }}:latest
docker push ghcr.io/${{ env.IMAGE_NAME }}:${{ env.VERSION_BARESIP }}
docker push ghcr.io/${{ env.IMAGE_NAME }}:latest