Skip to content

Commit

Permalink
fix autogpt-docker-ci.yml and autogpt-docker-release.yml to work with…
Browse files Browse the repository at this point in the history
… new Dockerfile
  • Loading branch information
Pwuts committed May 22, 2024
1 parent 3dbfe2c commit e6ca6e8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/autogpt-docker-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
name: Build image
uses: docker/build-push-action@v5
with:
context: autogpt
file: Dockerfile.autogpt
build-args: BUILD_TYPE=${{ matrix.build-type }}
tags: ${{ env.IMAGE_NAME }}
labels: GIT_REVISION=${{ github.sha }}
Expand Down Expand Up @@ -84,7 +84,6 @@ jobs:
vars_json: ${{ toJSON(vars) }}

run: .github/workflows/scripts/docker-ci-summary.sh >> $GITHUB_STEP_SUMMARY
working-directory: ./
continue-on-error: true

test:
Expand Down Expand Up @@ -119,7 +118,7 @@ jobs:
name: Build image
uses: docker/build-push-action@v5
with:
context: autogpt
file: Dockerfile.autogpt
build-args: BUILD_TYPE=dev # include pytest
tags: >
${{ env.IMAGE_NAME }},
Expand Down
7 changes: 1 addition & 6 deletions .github/workflows/autogpt-docker-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ on:
type: boolean
description: 'Build from scratch, without using cached layers'

defaults:
run:
working-directory: autogpt

env:
IMAGE_NAME: auto-gpt
DEPLOY_IMAGE_NAME: ${{ secrets.DOCKER_USER }}/auto-gpt
Expand Down Expand Up @@ -48,7 +44,7 @@ jobs:
name: Build image
uses: docker/build-push-action@v5
with:
context: autogpt
file: Dockerfile.autogpt
build-args: BUILD_TYPE=release
load: true # save to docker images
# push: true # TODO: uncomment when this issue is fixed: https://github.com/moby/buildkit/issues/1555
Expand Down Expand Up @@ -87,5 +83,4 @@ jobs:
vars_json: ${{ toJSON(vars) }}

run: .github/workflows/scripts/docker-release-summary.sh >> $GITHUB_STEP_SUMMARY
working-directory: ./
continue-on-error: true

0 comments on commit e6ca6e8

Please sign in to comment.