Skip to content

Checkout submodules during release workflow (#10) #3

Checkout submodules during release workflow (#10)

Checkout submodules during release workflow (#10) #3

Workflow file for this run

---
name: "Release"
on:
push:
tags:
- "*"
env:
REGISTRY: "ghcr.io"
IMAGE_NAME: "authzed/spicedb-playground"
jobs:
build-and-push-image:
runs-on: "buildjet-4vcpu-ubuntu-2204"
permissions:
contents: "write"
packages: "write"
steps:
- uses: "actions/checkout@v4"
with:
submodules: "recursive"
- name: "Log in to container registry"
uses: "docker/[email protected]"
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: "Extract metadata (tags, labels) for Docker"
id: meta
uses: "docker/[email protected]"
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
type=semver,pattern={{raw}}
- name: "Build and push Docker image"
uses: "docker/[email protected]"
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}