29 lines
767 B
YAML
29 lines
767 B
YAML
name: Docker Publish
|
|
on:
|
|
push:
|
|
tags:
|
|
- 'v[0-9]+.[0-9]+.[0-9]+'
|
|
|
|
jobs:
|
|
build-and-push:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@main
|
|
|
|
- name: Set up Docker Buildx
|
|
run: docker buildx create --use
|
|
|
|
- name: Login to Gitea Container Registry
|
|
run: |
|
|
echo "${{ secrets.GITEA_TOKEN }}" | docker login -u "${{ github.actor }}" --password-stdin gitea.scu.si
|
|
|
|
- name: Build and push
|
|
run: |
|
|
docker buildx build \
|
|
--platform linux/amd64,linux/arm64 \
|
|
--push \
|
|
-t gitea.scu.si/${{ github.repository }}/mdhost:latest \
|
|
-t gitea.scu.si/${{ github.repository }}/mdhost:${{ github.ref_name }} \
|
|
.
|