Android development APK / apk (push) Failing after 30s
Checks / go (push) Failing after 30s
Checks / flutter (push) Failing after 30s
Checks / compose (push) Failing after 30s
Container images / publish (., deploy/pocketbase/Dockerfile, evoliohealth-pocketbase) (push) Failing after 30s
Container images / publish (., server/Dockerfile, evoliohealth-server) (push) Failing after 30s
64 lines
1.7 KiB
YAML
64 lines
1.7 KiB
YAML
name: Container images
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
tags: ['v*']
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: read
|
|
packages: write
|
|
|
|
env:
|
|
REGISTRY: git.zaynet.fr
|
|
|
|
jobs:
|
|
publish:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
include:
|
|
- image: evoliohealth-server
|
|
context: .
|
|
file: server/Dockerfile
|
|
- image: evoliohealth-pocketbase
|
|
context: .
|
|
file: deploy/pocketbase/Dockerfile
|
|
steps:
|
|
- name: Check out repository
|
|
uses: actions/checkout@v4
|
|
- name: Set up QEMU
|
|
uses: docker/setup-qemu-action@v3
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v3
|
|
- name: Log in to Gitea registry
|
|
uses: docker/login-action@v3
|
|
with:
|
|
registry: ${{ env.REGISTRY }}
|
|
username: tony
|
|
password: ${{ secrets.REGISTRY_TOKEN }}
|
|
- name: Generate image metadata
|
|
id: metadata
|
|
uses: docker/metadata-action@v5
|
|
with:
|
|
images: ${{ env.REGISTRY }}/tony/${{ matrix.image }}
|
|
tags: |
|
|
type=raw,value=dev,enable=${{ gitea.ref == 'refs/heads/main' }}
|
|
type=sha,prefix=sha-
|
|
type=semver,pattern={{version}}
|
|
type=semver,pattern={{major}}.{{minor}}
|
|
- name: Build and publish image
|
|
uses: docker/build-push-action@v6
|
|
with:
|
|
context: ${{ matrix.context }}
|
|
file: ${{ matrix.file }}
|
|
platforms: linux/amd64,linux/arm64
|
|
push: true
|
|
tags: ${{ steps.metadata.outputs.tags }}
|
|
labels: ${{ steps.metadata.outputs.labels }}
|
|
provenance: mode=max
|
|
sbom: true
|
|
cache-from: type=gha
|
|
cache-to: type=gha,mode=max
|