Initial segregate: proxy source, deploy manifests, ImagePolicy Flux CRs.
build-and-push / build (push) Failing after 2m45s
build-and-push / build (push) Failing after 2m45s
Move workload out of infra with cursor-devbox-style GitRepository + run_number-sha image automation.
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
name: build-and-push
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [master]
|
||||
paths:
|
||||
- 'Dockerfile'
|
||||
- 'entrypoint.sh'
|
||||
- 'src/**'
|
||||
- 'scripts/**'
|
||||
- 'cursor-bootstrap/**'
|
||||
- '.gitea/workflows/build-and-push.yaml'
|
||||
workflow_dispatch: {}
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: docker/setup-buildx-action@v3
|
||||
- uses: docker/login-action@v3
|
||||
with:
|
||||
registry: dcr.trinitysan.by
|
||||
username: ${{ secrets.DCR_USERNAME }}
|
||||
password: ${{ secrets.DCR_PASSWORD }}
|
||||
- uses: docker/build-push-action@v6
|
||||
with:
|
||||
context: .
|
||||
file: Dockerfile
|
||||
push: true
|
||||
tags: |
|
||||
dcr.trinitysan.by/infra/cursor-agent-api-proxy:latest
|
||||
dcr.trinitysan.by/infra/cursor-agent-api-proxy:${{ github.sha }}
|
||||
dcr.trinitysan.by/infra/cursor-agent-api-proxy:${{ github.run_number }}-${{ github.sha }}
|
||||
cache-from: type=registry,ref=dcr.trinitysan.by/infra/cursor-agent-api-proxy:build-cache
|
||||
cache-to: type=registry,ref=dcr.trinitysan.by/infra/cursor-agent-api-proxy:build-cache,mode=max
|
||||
Reference in New Issue
Block a user