Files
promo_steakhouse/.gitea/workflows/ci.yml
T
Workflow config file is invalid. Please check your config file: model.ReadWorkflow: yaml: line 6: did not find expected alphabetic or numeric character
2026-08-27 11:30:34 +02:00

38 lines
923 B
YAML

name: Build and Push Container
on:
push:
branches:
*
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Log in to registry
uses: docker/login-action@v3
with:
registry: ${{ gitea.server_url }}
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_PASSWORD }}
- name: Set registry
shell: bash
run: |
REGISTRY="${GITEA_SERVER_URL}"
REGISTRY="${REGISTRY#http://}"
REGISTRY="${REGISTRY#https://}"
echo "REGISTRY=$REGISTRY" >> "$GITHUB_ENV"
env:
GITEA_SERVER_URL: ${{ gitea.server_url }}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: ${{ env.REGISTRY }}/${{ gitea.repository }}:latest