Skip to content

Commit

Permalink
Merge pull request #8 from RWKV/main-dev-infctx
Browse files Browse the repository at this point in the history
Main dev infctx
  • Loading branch information
PicoCreator authored Aug 21, 2023
2 parents 55c6431 + 09e045f commit cdc8891
Show file tree
Hide file tree
Showing 3 changed files with 122 additions and 141 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Docker Image Publish
name: Docker Env Image (cuda-11-8)

on:
push:
Expand All @@ -16,7 +16,8 @@ env:

jobs:
build:

name: Docker Env Image (cuda-11-8)

runs-on: ubuntu-latest
permissions:
contents: read
Expand All @@ -27,7 +28,7 @@ jobs:

steps:
# Get and log the free space
- name: Build
- name: Get system free space (Before reclaim)
run: |
echo "Free space:"
df -h
Expand All @@ -53,7 +54,7 @@ jobs:
docker-images: true

# Get and log the free space
- name: Build
- name: Get system free space (After reclaim)
run: |
echo "Free space:"
df -h
Expand Down Expand Up @@ -90,7 +91,11 @@ jobs:
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}


- name: downcase IMAGE_NAME
run: |
echo "IMAGE_NAME_LC=${IMAGE_NAME,,}" >>${GITHUB_ENV}
# Build and push Docker image with Buildx (don't push on PR)
# https://github.com/docker/build-push-action
- name: Build and push Docker image
Expand All @@ -99,7 +104,7 @@ jobs:
with:
context: "{{defaultContext}}:docker/env-cuda-11-8"
push: ${{ github.event_name != 'pull_request' }} # Don't push on PR
tags: "env-cuda-11-8"
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME_LC }}:env-cuda-11-8
# tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha,src=docker/env-cuda-11-8
Expand Down
Loading

0 comments on commit cdc8891

Please sign in to comment.