mirror of
https://github.com/zama-ai/concrete.git
synced 2026-04-17 03:00:54 -04:00
Build/env dev docker 127 (#196)
build: add workflow to create HDK env Docker Image - make bot username a secret - update Makefile to pull the HDK image - have a separate Makefile for the dev specific Docker Image needs
This commit is contained in:
54
.github/workflows/docker-env.yaml
vendored
Normal file
54
.github/workflows/docker-env.yaml
vendored
Normal file
@@ -0,0 +1,54 @@
|
||||
name: Docker image (HDK dev/CI)
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
paths:
|
||||
- docker/Dockerfile.hdk-env
|
||||
|
||||
# Allows you to run this workflow manually from the Actions tab
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
build_publish:
|
||||
name: Build & Push the HDK env Docker Image
|
||||
runs-on: ubuntu-20.04
|
||||
env:
|
||||
IMAGE_URL: ghcr.io/zama-ai/hdk-env
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
id: buildx
|
||||
uses: docker/setup-buildx-action@v1
|
||||
- name: Login to GitHub Container Registry
|
||||
uses: docker/login-action@v1
|
||||
with:
|
||||
registry: ghcr.io
|
||||
username: ${{ secrets.BOT_USERNAME }}
|
||||
password: ${{ secrets.BOT_TOKEN }}
|
||||
- name: Build hdk-env Image
|
||||
if: ${{ success() && !cancelled() }}
|
||||
uses: docker/build-push-action@v2
|
||||
with:
|
||||
context: .
|
||||
builder: ${{ steps.buildx.outputs.name }}
|
||||
file: docker/Dockerfile.hdk-env
|
||||
push: true
|
||||
tags: "${{ env.IMAGE_URL }}:latest"
|
||||
no-cache: true
|
||||
|
||||
- name: Slack Notification
|
||||
if: ${{ always() }}
|
||||
uses: rtCamp/action-slack-notify@v2
|
||||
env:
|
||||
SLACK_CHANNEL: hdk-updates
|
||||
SLACK_ICON: https://pbs.twimg.com/profile_images/1274014582265298945/OjBKP9kn_400x400.png
|
||||
SLACK_COLOR: ${{ job.status }}
|
||||
SLACK_MESSAGE: "Publishing Docker Image ${{ env.IMAGE_URL }} \
|
||||
finished with status ${{ job.status }}"
|
||||
SLACK_USERNAME: ${{ secrets.BOT_USERNAME }}
|
||||
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
|
||||
|
||||
Reference in New Issue
Block a user