Files
opencode-openchamber/.gitea/workflows/docker-build.yaml
T
cloudix_mcp_server 2f7d1f1e52
Docker Build and Push / lint (pull_request) Successful in 13s
Docker Build and Push / build-and-test (pull_request) Successful in 3m16s
Docker Build and Push / push (pull_request) Has been skipped
fix: restore correct action SHAs for checkout and docker/login-action
2026-06-12 19:58:17 -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@df4cb1c069e1874edd31b4311f1884172cec0e10
- uses: hadolint/hadolint-action@54c9adbab1582c2ef04b2016b760714a4bfde3cf
with:
dockerfile: Dockerfile
failure-threshold: error
build-and-test:
runs-on: ubuntu-latest
needs: lint
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10
- 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@df4cb1c069e1874edd31b4311f1884172cec0e10
- name: Build image
run: docker build -t ci-image:${{ github.sha }} .
- uses: docker/login-action@650006c6eb7dba73a995cc03b0b2d7f5ca915bee
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