Files
mysql-client/.gitea/workflows/main.yaml
T
OpenCode Cabillot 42ff058a6f
PR Checks / hadolint (pull_request) Successful in 12s
PR Checks / build-test (pull_request) Successful in 26s
fix(ci): correct handed-corrupted SHA for anothrNick/github-tag-action
The tag job in main.yaml references
  anothrNick/github-tag-action@4ed44965e0
which does not exist upstream: the runner fails with
  Unable to resolve 4ed44965...: reference not found
  ##[error]reference not found

The first 12 chars match the real commit, the rest is fabricated - the
signature of a hand-rewritten YAML (commit 5e1827b re-added the step with a
bad SHA after 8b583cc had removed it). The correct commit for tag v1.75.0
is 4ed44965e0db8dab2b466a16da04aec3cc312fd8.

Impact: main.yaml has been red on every push to master since (runs 8197 and
8616: hadolint/test/build green, tag failed), so no release tag is created
and tag.yaml never runs -> no release build pushed to Docker Hub.

Verified against the upstream repo: tag 1.75.0 (and the v1 alias) both point
at 4ed44965e0db8dab2b466a16da04aec3cc312fd8.
2026-09-13 14:57:01 +00:00

50 lines
1.6 KiB
YAML

name: Main Release
on:
push:
branches: [master]
jobs:
hadolint:
runs-on: ubuntu-latest
continue-on-error: true
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
- uses: hadolint/hadolint-action@06be81baf89a55ffd0e24b8f04a4185738dd3387 # v3.5.0
with:
dockerfile: Dockerfile
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
- uses: docker/setup-buildx-action@37fe631027851001ddb9b187196cc803df7f5f0e # v4
- run: docker build -t ci-image:${{ github.sha }} .
- run: bash tests/test.sh ci-image:${{ github.sha }}
build:
needs: [test]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
- uses: docker/setup-buildx-action@37fe631027851001ddb9b187196cc803df7f5f0e # v4
- run: docker build -t jcabillot/mysql-client:${{ github.sha }} .
tag:
needs: [build]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
with:
fetch-depth: 0
- name: Configure git auth
run: |
git remote set-url origin "https://x-access-token:${{ secrets.GITHUB_TOKEN }}@scm.cabillot.eu/perso/mysql-client.git"
- uses: anothrNick/github-tag-action@4ed44965e0db8dab2b466a16da04aec3cc312fd8 # v1.75.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DEFAULT_BUMP: patch
RELEASE_BRANCHES: master
WITH_V: true
GIT_API_TAGGING: false