Skip to content

feat(gitea): configure ingress and ACME settings (#282) #212

feat(gitea): configure ingress and ACME settings (#282)

feat(gitea): configure ingress and ACME settings (#282) #212

name: Docker Build and Push
on:
push:
branches:
- "main"
jobs:
docker:
runs-on: arc-arm64
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Bump version and push tag
id: tag_version
uses: mathieudutour/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Create a GitHub release
uses: ncipollo/release-action@v1
with:
tag: ${{ steps.tag_version.outputs.new_tag }}
name: Release ${{ steps.tag_version.outputs.new_tag }}
body: ${{ steps.tag_version.outputs.changelog }}
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: |
gitea.grisha.cloud/lab/ecran
tags: |
type=ref,event=branch
type=semver,pattern={{version}},value=${{ steps.tag_version.outputs.new_tag }}
type=sha
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
registry: gitea.grisha.cloud
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_TOKEN }}
- name: Build and push ecran
uses: docker/build-push-action@v5
with:
platforms: linux/arm64
context: ./apps/ecran
file: ./apps/ecran/Dockerfile
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
push: true
cache-from: type=registry,ref=gitea.grisha.cloud/lab/ecran:latest
cache-to: type=inline