libre: add CXX compiler #17
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: restund | |
on: | |
push: | |
branches: [ main ] | |
paths: | |
- 'libre/Dockerfile' | |
- 'restund/Dockerfile' | |
- '.github/workflows/restund.yml' | |
pull_request: | |
branches: [ main ] | |
paths: | |
- 'libre/Dockerfile' | |
- 'restund/Dockerfile' | |
- '.github/workflows/restund.yml' | |
env: | |
VERSION_RESTUND: main | |
jobs: | |
restund: | |
env: | |
IMAGE_NAME: ${{ github.repository }}/restund | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Log into registry | |
uses: docker/login-action@v1 | |
with: | |
registry: "ghcr.io" | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build | |
run: | | |
docker build restund -t restund \ | |
--build-arg VERSION=${{ env.VERSION_RESTUND }} \ | |
--build-arg IMAGE=ghcr.io/baresip/docker/libre:latest \ | |
--build-arg RELEASE=1 | |
- name: Tag and Push image | |
if: github.event_name != 'pull_request' | |
run: | | |
docker tag restund ghcr.io/${{ env.IMAGE_NAME }}:${{ env.VERSION_RESTUND }} | |
docker tag restund ghcr.io/${{ env.IMAGE_NAME }}:latest | |
docker push ghcr.io/${{ env.IMAGE_NAME }}:${{ env.VERSION_RESTUND }} | |
docker push ghcr.io/${{ env.IMAGE_NAME }}:latest |