Skip to content
This repository has been archived by the owner on Dec 4, 2023. It is now read-only.

Escape PG pass (#30) #15

Escape PG pass (#30)

Escape PG pass (#30) #15

Workflow file for this run

name: Release prem-gateway Docker images
on: {push: {tags: ['*']}}
jobs:
build-and-push:
permissions:
packages: write
contents: write
runs-on: ubuntu-latest
env:
DOCKER_CLI_EXPERIMENTAL: enabled
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup QEMU
uses: docker/setup-qemu-action@v2
- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v2
with:
install: true
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ github.token }}
- name: Build & push dnsd
run: >-
docker buildx build --push
--file ./dns/Dockerfile
--tag ghcr.io/premai-io/dnsd:latest
--tag ghcr.io/premai-io/dnsd:"${GITHUB_REF#refs/tags/}"
--platform linux/arm64,linux/amd64 ./dns
- name: Build & push controllerd
run: >-
docker buildx build --push
--file ./controller/Dockerfile
--tag ghcr.io/premai-io/controllerd:latest
--tag ghcr.io/premai-io/controllerd:"${GITHUB_REF#refs/tags/}"
--platform linux/arm64,linux/amd64 ./controller
- name: Build & push authd
run: >-
docker buildx build --push
--file ./auth/Dockerfile
--tag ghcr.io/premai-io/authd:latest
--tag ghcr.io/premai-io/authd:"${GITHUB_REF#refs/tags/}"
--platform linux/arm64,linux/amd64 ./auth
- name: Create GitHub Release
run: gh release create --generate-notes "${GITHUB_REF#refs/tags/}"
env:
GH_TOKEN: ${{ github.token }}