Skip to content

Commit

Permalink
Add release workflow (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
samkim authored Mar 29, 2024
1 parent 1ddf788 commit bbbca9d
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
---
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:
fetch-depth: 0
- 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 }}

0 comments on commit bbbca9d

Please sign in to comment.