diff --git a/.forgejo/workflows/docker.yml b/.forgejo/workflows/docker.yml deleted file mode 100644 index 3353cbf..0000000 --- a/.forgejo/workflows/docker.yml +++ /dev/null @@ -1,60 +0,0 @@ -name: Build and publish cf-orch Docker image - -on: - push: - tags: - - "v*" - workflow_dispatch: - -env: - REGISTRY: ghcr.io - IMAGE_NAME: circuit-forge/cf-orch - -jobs: - build-and-push: - runs-on: ubuntu-latest - permissions: - contents: read - packages: write - - steps: - - name: Checkout - uses: actions/checkout@v4 - - - name: Extract version from tag - id: meta - run: | - TAG="${GITHUB_REF_NAME}" - echo "tag=${TAG}" >> "$GITHUB_OUTPUT" - echo "image=${REGISTRY}/${IMAGE_NAME}" >> "$GITHUB_OUTPUT" - - - name: Log in to GHCR - 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: Build and push - uses: docker/build-push-action@v5 - with: - context: . - file: Dockerfile.orch - push: true - tags: | - ${{ steps.meta.outputs.image }}:latest - ${{ steps.meta.outputs.image }}:${{ steps.meta.outputs.tag }} - cache-from: type=gha - cache-to: type=gha,mode=max - labels: | - org.opencontainers.image.version=${{ steps.meta.outputs.tag }} - org.opencontainers.image.revision=${{ github.sha }} - - - name: Summary - run: | - echo "### Published" >> "$GITHUB_STEP_SUMMARY" - echo "- \`${{ steps.meta.outputs.image }}:latest\`" >> "$GITHUB_STEP_SUMMARY" - echo "- \`${{ steps.meta.outputs.image }}:${{ steps.meta.outputs.tag }}\`" >> "$GITHUB_STEP_SUMMARY"