Skip to content

tfc-runtime

tfc-runtime #32

Workflow file for this run

name: tfc-runtime
on:
workflow_run:
workflows: ["ubuntu packaging"]
types:
- completed
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
REGISTRY: ghcr.io/${{ github.repository_owner }}/${{ github.repository }}
jobs:
build-and-push-image:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Log in to the Container registry
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels) for tfc-runtime
id: meta-tfc-runtime
env:
IMAGE_NAME: tfc-runtime
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
flavor: |
latest=true
tags: |
type=schedule
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
type=sha
- name: Build and push tfc-runtime
uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
with:
context: ./containers/tfc-runtime
push: ${{ github.ref == 'refs/heads/main' }}
tags: ${{ steps.meta-tfc-runtime.outputs.tags }}
labels: ${{ steps.meta-tfc-runtime.outputs.labels }}
file: ./containers/tfc-runtime/tfc-runtime.dockerfile
- name: Extract metadata (tags, labels) for tfc-dart-sdk
id: meta-tfc-dart-sdk
env:
IMAGE_NAME: tfc-dart-sdk
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
flavor: |
latest=true
tags: |
type=schedule
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
type=sha
- name: Build and push tfc-dart-sdk
uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
with:
context: ./containers/tfc-dart-sdk
push: ${{ github.ref == 'refs/heads/main' }}
tags: ${{ steps.meta-tfc-dart-sdk.outputs.tags }}
labels: ${{ steps.meta-tfc-dart-sdk.outputs.labels }}
file: ./containers/tfc-dart-sdk/tfc-dart-sdk.dockerfile