Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| e86fdf0c9b | |||
| 505349e10b | |||
| c0d3f87a7e | |||
| 1d9b4902d4 | |||
| e707045d63 | |||
| d8a2069640 |
@@ -4,7 +4,6 @@ on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
- development
|
||||
- staging
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
@@ -87,8 +86,6 @@ jobs:
|
||||
push: true
|
||||
tags: ${{ steps.meta.outputs.tags }}
|
||||
labels: ${{ steps.meta.outputs.labels }}
|
||||
cache-from: type=gha
|
||||
cache-to: type=gha,mode=max
|
||||
platforms: linux/amd64
|
||||
|
||||
build-windows:
|
||||
@@ -101,30 +98,12 @@ jobs:
|
||||
steps:
|
||||
- name: Checkout repository with Git
|
||||
run: |
|
||||
echo ===== Cloning repository from Gitea =====
|
||||
git clone --depth 1 --branch ${{ github.ref_name }} https://alessio:%REGISTRY_TOKEN%@gitea.home-nas-ds.org/${{ github.repository }}.git repo
|
||||
if errorlevel 1 (
|
||||
echo Failed to clone repository
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
echo ===== Moving files to working directory =====
|
||||
robocopy repo . /E /MOVE /NFL /NDL /NJH /NJS
|
||||
REM robocopy exit codes: 0=no copy, 1=ok, 2=extra files, 3=ok+extra, 4+=error
|
||||
if %ERRORLEVEL% GEQ 8 (
|
||||
echo Robocopy failed with exit code %ERRORLEVEL%
|
||||
exit /b 1
|
||||
)
|
||||
rmdir repo /S /Q 2>nul
|
||||
|
||||
echo ===== Verifying checkout =====
|
||||
if exist Dockerfile.windows (
|
||||
echo SUCCESS: Repository checked out, Dockerfile.windows found
|
||||
) else (
|
||||
git clone --depth 1 --branch ${{ github.ref_name }} https://alessio:%REGISTRY_TOKEN%@gitea.home-nas-ds.org/${{ github.repository }}.git .
|
||||
if not exist Dockerfile.windows (
|
||||
echo ERROR: Dockerfile.windows not found
|
||||
dir /B
|
||||
exit /b 1
|
||||
)
|
||||
echo SUCCESS: Repository cloned
|
||||
env:
|
||||
REGISTRY_TOKEN: ${{ secrets.REGISTRY_TOKEN }}
|
||||
shell: cmd
|
||||
|
||||
Reference in New Issue
Block a user