s3cmd/.forgejo/workflows/docker-build.yaml
Sofiane Gerhardt 7b119d37a1
Some checks failed
Docker Build / docker-build (push) Failing after 1m48s
try different image
2025-06-10 18:19:18 +02:00

43 lines
1.1 KiB
YAML

name: Docker Build
on:
push:
branches:
- main
env:
IMAGE: git.kvant.cloud/${{ github.repository }}
VERSION: ${{ github.ref_name }}
jobs:
docker-build:
runs-on: ubuntu-latest
container:
image: node:20-bookworm
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Login to gitea registry
uses: docker/login-action@v3
with:
registry: git.kvant.cloud
username: ${{ vars.ORG_PACKAGE_WRITER_USERNAME }}
password: ${{ secrets.ORG_PACKAGE_WRITER_TOKEN }}
- name: Build and push to gitea registry
uses: docker/build-push-action@v6
with:
push: true
context: .
build-args: |
VERSION=${{ env.VERSION }}
image: ${{ env.IMAGE }}
cache-from: |
type=registry,ref=${{ env.IMAGE }}:${{ env.VERSION }}
type=registry,ref=${{ env.IMAGE }}:latest
cache-to: type=inline
tags: |
${{ env.IMAGE }}:${{ env.VERSION }}
${{ env.IMAGE }}:latest