Skip to content

chore(main): release 1.1.0 (#79) #30

chore(main): release 1.1.0 (#79)

chore(main): release 1.1.0 (#79) #30

Workflow file for this run

on:
push:
branches:
- main
tags:
- "*"
name: deploy
permissions:
packages: write
contents: read
# allow issuing OIDC tokens for this workflow run
# (required for Depot)
id-token: write
jobs:
deploy:
runs-on: ubuntu-20.04
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
steps:
- uses: actions/checkout@v3
- name: Setup Depot
uses: depot/setup-action@v1
- name: Log in to the container registry
uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.PAT }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v4
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
flavor: |
latest=false
tags: |
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
type=edge,branch=main
type=sha
- name: Build container
uses: depot/build-push-action@v1
with:
context: .
push: true
project: q9nlqb6nhx
platforms: linux/amd64,linux/arm64
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}