mirror of
https://github.com/hanzoai/bootnode.git
synced 2026-09-30 20:46:32 +00:00
ci: disable stale operator build job (operator is in bootnode/universe)
This commit is contained in:
@@ -148,40 +148,12 @@ jobs:
|
||||
|
||||
build-operator:
|
||||
runs-on: ubuntu-latest
|
||||
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
|
||||
if: false # operator build removed — operator lives in bootnode/universe repo
|
||||
permissions:
|
||||
contents: read
|
||||
packages: write
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Log in to Container Registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: ${{ env.REGISTRY }}
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
- name: Get short SHA
|
||||
id: sha
|
||||
run: echo "short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Build and push operator image
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
context: ./operator
|
||||
file: ./operator/Dockerfile
|
||||
platforms: linux/amd64
|
||||
push: true
|
||||
tags: |
|
||||
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:operator-latest
|
||||
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:operator-${{ steps.sha.outputs.short }}
|
||||
cache-from: type=gha,scope=operator
|
||||
cache-to: type=gha,mode=max,scope=operator
|
||||
- run: echo "Operator build skipped"
|
||||
|
||||
build-and-push:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
Reference in New Issue
Block a user