Adding Github actions for building the docker images

This commit is contained in:
ekoc committed 2025-02-26 20:21:46 +01:00
1 parent fbd09a24b6
commit 3aacf3f27f
2 files changed
+14 -2

No files matched your search

+6
View File
@@ -14,6 +14,12 @@ inputs:
runs: runs:
using: "composite" using: "composite"
steps: steps:
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@v1.3.1
with:
tool-cache: true
swap-storage: false
large-packages: false
- name: Read variables - name: Read variables
shell: bash shell: bash
run: | run: |
+8 -2
View File
@@ -10,6 +10,11 @@ on:
tags: tags:
- 'v*' - 'v*'
# Limit the concurrency of entire workflow runs for a specific branch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs: jobs:
build_base_environment_docker_image: build_base_environment_docker_image:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@@ -111,7 +116,8 @@ jobs:
ALLTALK_DIR=${{ env.ALLTALK_DIR }} ALLTALK_DIR=${{ env.ALLTALK_DIR }}
DEEPSPEED_VERSION=${{ env.DEEPSPEED_VERSION }} DEEPSPEED_VERSION=${{ env.DEEPSPEED_VERSION }}
DOCKER_TAG=${{ env.DOCKER_TAG }} DOCKER_TAG=${{ env.DOCKER_TAG }}
GITHUB_REPOSITORY=${{ env.DOCKERHUB_USERNAME }}/
tags: ${{ steps.meta.outputs.tags }} tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }} labels: ${{ steps.meta.outputs.labels }}
cache-from: type=registry,ref=${{ env.DOCKERHUB_USERNAME }}/${{ env.DOCKERHUB_REPO_NAME }}:buildcache cache-from: type=registry,ref=${{ env.DOCKERHUB_USERNAME }}/${{ env.DOCKERHUB_REPO_NAME }}:buildcache-${{ matrix.tts }}
cache-to: type=registry,ref=${{ env.DOCKERHUB_USERNAME }}/${{ env.DOCKERHUB_REPO_NAME }}:buildcache,mode=max cache-to: type=registry,ref=${{ env.DOCKERHUB_USERNAME }}/${{ env.DOCKERHUB_REPO_NAME }}:buildcache-${{ matrix.tts }},mode=max