Skip to content

Commit

Permalink
Merge pull request #2148 from opentensor/ci/gus/docker-release-workflow
Browse files Browse the repository at this point in the history
ci: removes deprecated release scripts and adds docker release workflow
  • Loading branch information
gus-opentensor authored Jul 22, 2024
2 parents ed318f6 + 1985663 commit efa6239
Show file tree
Hide file tree
Showing 9 changed files with 51 additions and 766 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/docker_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Build and Push Docker Image
# https://github.com/sigstore/cosign
on:
workflow_dispatch:
inputs:
tag:
description: 'Docker image tag'
required: true
default: 'latest'

jobs:
build-and-push:
runs-on: ubuntu-latest

permissions:
contents: read
id-token: write

steps:
- name: Check out code
uses: actions/checkout@v3

- name: Install cosign
uses: sigstore/cosign-installer@v3

- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
registry: docker.io
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
context: .
push: true
tags: |
opentensorfdn/bittensor:${{ github.event.inputs.tag }}
opentensorfdn/bittensor:latest
provenance: false

- name: Sign the images with GitHub OIDC Token
env:
DIGEST: ${{ steps.build.outputs.digest }}
TAGS: ${{ steps.build.outputs.tags }}
run: |
echo "${TAGS}" | xargs -I {} cosign sign --yes {}@${DIGEST}
106 changes: 0 additions & 106 deletions scripts/release/add_notes_changelog.sh

This file was deleted.

105 changes: 0 additions & 105 deletions scripts/release/github_release.sh

This file was deleted.

Loading

0 comments on commit efa6239

Please sign in to comment.