mirror of
https://github.com/shishantbiswas/bknd-examples.git
synced 2026-03-15 18:01:06 +00:00
All checks were successful
Build and Push to Gitea Registry / build-and-push (push) Successful in 7m8s
58 lines
1.9 KiB
YAML
58 lines
1.9 KiB
YAML
name: Build and Push to Gitea Registry
|
|
|
|
on:
|
|
push:
|
|
branches: [ "main", "solid", "nuxt" ]
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build-and-push:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Log in to Gitea Registry
|
|
uses: docker/login-action@v3
|
|
with:
|
|
registry: gitea.bsws.in
|
|
username: ${{ github.actor }}
|
|
password: ${{ secrets.TOKEN }}
|
|
|
|
- name: Set up QEMU
|
|
uses: docker/setup-qemu-action@v3
|
|
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v3
|
|
|
|
- name: Extract metadata
|
|
id: meta
|
|
uses: docker/metadata-action@v5
|
|
with:
|
|
images: gitea.bsws.in/${{ github.repository }}
|
|
tags: |
|
|
type=raw,value=tanstack-start-{{sha}},enable=${{ github.ref_name == 'main' }},priority=1000
|
|
type=raw,value=tanstack-start,enable=${{ github.ref_name == 'main' }},priority=900
|
|
|
|
type=raw,value=nuxt-{{sha}},enable=${{ github.ref_name == 'nuxt' }},priority=1000
|
|
type=raw,value=nuxt,enable=${{ github.ref_name == 'nuxt' }},priority=900
|
|
|
|
|
|
type=raw,value=solid-start-{{sha}},enable=${{ github.ref_name == 'solid' }},priority=1000
|
|
type=raw,value=solid-start,enable=${{ github.ref_name == 'solid' }},priority=900
|
|
|
|
type=ref,event=branch,enable=${{ github.ref_name != 'main' && github.ref_name != 'solid' && github.ref_name != 'nuxt' }}
|
|
|
|
- name: Inspect Generated Tags
|
|
run: |
|
|
echo "The following tags will be applied:"
|
|
echo "${{ steps.meta.outputs.tags }}"
|
|
|
|
- name: Build and push
|
|
uses: docker/build-push-action@v6
|
|
with:
|
|
context: .
|
|
push: true
|
|
platforms: linux/amd64,linux/arm64
|
|
tags: ${{ steps.meta.outputs.tags }}
|
|
labels: ${{ steps.meta.outputs.labels }} |