Skip to content

Merge pull request #349 from bcc-code/feat/bmm-languages #659

Merge pull request #349 from bcc-code/feat/bmm-languages

Merge pull request #349 from bcc-code/feat/bmm-languages #659

Workflow file for this run

name: Deploy Images
on:
workflow_dispatch:
push:
paths-ignore:
- 'VERSION'
branches: [ "master" ]
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
strategy:
matrix:
image: [
temporal-worker/worker.Dockerfile,
temporal-httpin/httpin.Dockerfile,
temporal-triggerui/trigger_ui.Dockerfile,
temporal-transcode-worker/transcode-worker.Dockerfile,
]
steps:
- uses: actions/checkout@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push image
run: |
IMAGE=${{matrix.image}}
IMAGE_NAME=${IMAGE%/*}:${{ github.sha }}
IMAGE_NAME_LATEST=${IMAGE%/*}:latest
DOCKER_FILE=${IMAGE#*/}
docker build . --file $DOCKER_FILE --tag ghcr.io/bcc-code/bcc-media/$IMAGE_NAME
docker tag ghcr.io/bcc-code/bcc-media/$IMAGE_NAME ghcr.io/bcc-code/bcc-media/$IMAGE_NAME_LATEST
docker push ghcr.io/bcc-code/bcc-media/$IMAGE_NAME
docker push ghcr.io/bcc-code/bcc-media/$IMAGE_NAME_LATEST