Files
opencode-openchamber/.gitea/workflows/docker-build.yaml
T
cloudix_mcp_server 49d6132a60
Docker Build and Push / lint (pull_request) Failing after 11s
Docker Build and Push / build-and-test (pull_request) Has been skipped
Docker Build and Push / push (pull_request) Has been skipped
ci: update cron schedule to daily at midnight; refactor pipeline
- Change schedule from weekly (30 3 * * 3) to daily (0 0 * * *)
- Remove legacy Jenkinsfile (fully migrated to Gitea Actions)
- Keep lint, build-and-test, and push jobs intact
- Keep hadolint linting and tests/test.sh integration
- Image: jcabillot/opencode-openchamber
2026-06-12 19:56:15 -04:00

46 lines
1.3 KiB
YAML

name: Docker Build and Push
on:
push:
branches: [main]
pull_request:
schedule:
- cron: '0 0 * * *'
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@df4cb1c069e1874eddd317b41184172cece0e10
- uses: hadolint/hadolint-action@54c9adbab1582c2ef04b2016b760714a4bfde3cf
with:
dockerfile: Dockerfile
failure-threshold: error
build-and-test:
runs-on: ubuntu-latest
needs: lint
steps:
- uses: actions/checkout@df4cb1c069e1874eddd317b41184172cece0e10
- 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: build-and-test
if: github.event_name != 'pull_request'
steps:
- uses: actions/checkout@df4cb1c069e1874eddd317b41184172cece0e10
- name: Build image
run: docker build -t ci-image:${{ github.sha }} .
- uses: docker/login-action@650006c6eb7dba73a995d95a7b0b2d7f5ca915be
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Tag and push
run: |
docker tag ci-image:${{ github.sha }} jcabillot/opencode-openchamber:latest
docker push jcabillot/opencode-openchamber:latest