Skip to content

remove unnecessary shell #20

remove unnecessary shell

remove unnecessary shell #20

Workflow file for this run

name: Build and Publish Docker Image
on:
workflow_dispatch:
push:
branches:
- main
paths:
- "Dockerfile"
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
attestations: write
id-token: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
with:
images: ghcr.io/stephtr/libqalculate-wasm
- name: Set up Docker CLI
uses: docker/setup-buildx-action@v3
- name: Build and push Docker images
id: push
uses: docker/build-push-action@v6
with:
push: true
cache-from: type=gha
cache-to: type=gha,mode=max
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
- name: Generate artifact attestation
uses: actions/attest-build-provenance@v1
with:
subject-name: ghcr.io/stephtr/libqalculate-wasm
subject-digest: ${{ steps.push.outputs.digest }}
push-to-registry: true