Skip to content

Data flow graph public preview #2

Data flow graph public preview

Data flow graph public preview #2

name: Build and Push WASM Rust Base Image
on:
workflow_dispatch:
push:
branches: [ main, wasm ]
paths:
- 'samples/wasm/base-image/**'
pull_request:
branches: [ main ]
paths:
- 'samples/wasm/base-image/**'
jobs:
build-and-push:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
defaults:
run:
shell: bash
steps:
- name: "Checkout GitHub Action"
uses: actions/checkout@main
- name: "Login to GitHub Container Registry"
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{github.actor}}
password: ${{secrets.GITHUB_TOKEN}}
- name: Extract metadata
id: meta
uses: docker/metadata-action@v5
with:
images: ghcr.io/${{ github.repository }}/wasm-rust-build
tags: |
type=ref,event=branch
type=ref,event=pr
type=sha,prefix={{branch}}-
type=raw,value=latest,enable={{is_default_branch}}
- name: "Build and Push Base Image"
uses: docker/build-push-action@v5
with:
context: samples/wasm/base-image
file: samples/wasm/base-image/Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}