fix: CI workflow - remove container override, use actions/checkout@v4 #2

Merged
rock merged 2 commits from fix/ci-container-override into main 2026-09-07 05:48:26 +00:00
+7 -12
View File
@@ -8,25 +8,16 @@ on:
jobs:
test-build-push:
runs-on: golang
container:
image: golang:1.26
env:
GOPRIVATE: forgejo.riotpiao.com
REGISTRY: forgejo.riotpiao.com
IMAGE: forgejo.riotpiao.com/rock/poimen-workflows
steps:
- name: Configure git authentication
run: |
git config --global url."https://oauth2:${{ secrets.REGISTRY_PAT }}@forgejo.riotpiao.com".insteadOf "https://forgejo.riotpiao.com"
git config --global credential.helper store
echo "https://oauth2:${{ secrets.REGISTRY_PAT }}@forgejo.riotpiao.com" >> ~/.git-credentials
- name: Install Node.js for actions runtime
run: apt-get update && apt-get install -y nodejs
- name: Checkout code
run: |
git init
git remote add origin https://forgejo.riotpiao.com/rock/poimen-workflows.git
git fetch origin ${{ github.head_ref || github.ref_name }} --depth=1
git checkout FETCH_HEAD
uses: actions/checkout@v4
- name: Download dependencies
run: go mod download
@@ -44,6 +35,10 @@ jobs:
id: sha
run: echo "short_sha=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
- name: Install Docker CLI
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
run: apt-get update && apt-get install -y docker.io
- name: Registry login
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
run: |