Skip to content

mqtt auth server docker release #7

mqtt auth server docker release

mqtt auth server docker release #7

name: mqtt auth server docker release
on:
workflow_dispatch:
inputs:
version:
required: true
description: "version to release"
env:
REGISTRY: ghcr.io
jobs:
docker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: true
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
-
name: Login to GithubPackages
uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
-
name: build and push
uses: docker/build-push-action@v2
with:
context: ./authServer
#platforms: linux/amd64,linux/arm64
push: true
cache-from: type=gha
cache-to: type=gha,mode=max
tags: ${{ env.REGISTRY }}/fornetcode/mqtt-auth-server:${{github.event.inputs.version}}, ${{ env.REGISTRY }}/fornetcode/mqtt-auth-server:latest