Skip to content

Commit

Permalink
Add workflow for docker/build push of sci-kind (#202)
Browse files Browse the repository at this point in the history
  • Loading branch information
nstogner committed Aug 20, 2023
1 parent 44e1ece commit 2eddbe5
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/docker-build-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,3 +96,33 @@ jobs:
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
sci-kind:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to Docker Hub
if: github.event_name != 'pull_request'
uses: docker/login-action@v2
with:
username: "${{ secrets.DOCKERHUB_USERNAME }}"
password: "${{ secrets.DOCKERHUB_TOKEN }}"
- name: Docker meta
id: meta
uses: docker/metadata-action@v4
with:
images: substratusai/sci-kind
- name: Build and push
id: build-and-push-sci-kind
uses: docker/build-push-action@v4
with:
context: .
file: Dockerfile.sci-kind
platforms: "linux/amd64,linux/arm64"
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

0 comments on commit 2eddbe5

Please sign in to comment.