40 lines
1.1 KiB
YAML
40 lines
1.1 KiB
YAML
on:
|
|
push:
|
|
tags:
|
|
- "v*.*.*"
|
|
jobs:
|
|
publish:
|
|
runs-on: docker
|
|
container:
|
|
image: ghcr.io/catthehacker/ubuntu:act-22.04
|
|
steps:
|
|
- name: Extract metadata (tags, labels)
|
|
id: meta
|
|
uses: docker/metadata-action@v5
|
|
with:
|
|
images: |
|
|
git.spgrn.com/${{ env.GITHUB_REPOSITORY }}-web
|
|
tags: |
|
|
type=ref,event=tag
|
|
type=semver,pattern={{version}}
|
|
type=semver,pattern={{major}}.{{minor}}
|
|
type=semver,pattern={{major}}
|
|
type=raw,value=latest
|
|
type=sha
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
- name: Login to Container Registry
|
|
uses: docker/login-action@v3
|
|
with:
|
|
registry: git.spgrn.com
|
|
username: seang96
|
|
password: ${{ secrets.TOKEN }}
|
|
- name: Build Web Application
|
|
uses: docker/build-push-action@v5
|
|
with:
|
|
context: .
|
|
file: ./StalwartSimpleLoginMiddleware/Dockerfile
|
|
platforms: linux/amd64
|
|
push: true
|
|
tags: ${{ steps.meta.outputs.tags }}
|
|
labels: ${{ steps.meta.outputs.labels }}
|