Files
siege/.gitea/workflows/cron.yaml
T
Sagent 02a3583d7f
PR / lint (pull_request) Failing after 3s
PR / test (pull_request) Has been skipped
fix: convert all workflows to standard htpasswd pattern (no artifacts)
- Removed artifact upload/download steps from all workflows
- Merged build+test into single 'test' job, eliminating artifact dependency
- Removed ChristopherHX/gitea-upload-artifact and download-artifact actions
- Builds image directly with docker build and runs tests in same job
- Push job rebuilds independently with docker/build-push-action
- pr.yaml: lint → test only (no push/version bump)
- tag.yaml: lint → test → push with semver tags
- cron.yaml: keeps original '0 0 * * *' schedule
- All pinned SHAs preserved
2026-06-13 21:43:20 +00:00

65 lines
2.1 KiB
YAML

name: Cron
on:
schedule:
- cron: '0 0 * * *'
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
- name: Hadolint
uses: hadolint/hadolint-action@2332a7b74a6de0dda2e2221d576162eba76ba5e5 # v3.3.0
test:
runs-on: ubuntu-latest
needs: lint
steps:
- name: Checkout
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@d7f5e7f509e45cec5cec5c76c4d5afdd7de93df5 # v4
- name: Build image
run: docker build -t ci-image:${{ github.sha }} .
- name: Run tests
run: bash tests/test.sh ci-image:${{ github.sha }}
push:
runs-on: ubuntu-latest
needs: test
steps:
- name: Checkout
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
with:
fetch-depth: 0
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@d7f5e7f509e45cec5cec5c76c4d5afdd7de93df5 # v4
- name: Docker Metadata
id: meta
uses: docker/metadata-action@80c7e94dd9b9319bd5d67e4c5d0d6f05c5a2a2e9 # v6
with:
images: jcabillot/siege
tags: |
type=raw,value=latest
type=sha
- name: Login to Docker Hub
uses: docker/login-action@650006c6eb7dba73a995c9c0bca3b95a915bee7 # v4
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@f9f3042f7278276550484b5f71a1d0ae9f3b07a # v7
with:
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
- name: Bump version and push tag
uses: anothrNick/github-tag-action@ed44965e0dbd8abbbd2b46646a7a2b636c312fd8 # v1.75.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DEFAULT_BUMP: patch
RELEASE_BRANCHES: master
WITH_V: true
GIT_API_TAGGING: false