Skip to content

Release

Release #3

Workflow file for this run

name: Release
on:
push:
tags: [ '*.*.*' ]
jobs:
dockerize:
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: |
ghcr.io/hominsu/postgresql
hominsu/postgresql
tags: |
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
flavor: |
latest=auto
bake-target: metadata
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_ID }}
password: ${{ secrets.DOCKER_TOKEN }}
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: hominsu
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up QEMU
id: qemu
uses: docker/setup-qemu-action@v3
- name: Set Up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v3
with:
install: true
- name: Build and Push
id: bake
uses: docker/bake-action@v5
with:
files: |
deploy/docker-bake.hcl
${{ steps.meta.outputs.bake-file }}
targets: deeplx
push: true