Skip to content

Commit

Permalink
Don't skip release if charts released
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubno committed Oct 24, 2024
1 parent 262b615 commit c0aa8ab
Showing 1 changed file with 20 additions and 8 deletions.
28 changes: 20 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ jobs:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build and push to DockerHub
- name: Set package version
working-directory: ./template
run: |
if [ -z "${{ needs.charts-release.outputs.version }}" ]; then
Expand All @@ -187,12 +187,24 @@ jobs:
fi
sed -i "s/e2b_charts/e2b_charts==${VERSION}/g" requirements.txt
docker pull ${{ secrets.DOCKERHUB_USERNAME }}/code-interpreter:latest || true
docker buildx build \
--file Dockerfile \
--platform linux/amd64 \
--push \
--tag ${{ secrets.DOCKERHUB_USERNAME }}/code-interpreter:latest .
- name: Cache Docker layers
uses: actions/cache@v3
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-
- name: Build Docker image
uses: docker/build-push-action@v6
with:
context: ./template
push: true
platforms: linux/amd64
tags: ${{ secrets.DOCKERHUB_USERNAME }}/code-interpreter:latest
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache,mode=max

build-template:
name: Build E2B template
Expand Down Expand Up @@ -238,7 +250,7 @@ jobs:
if: always() &&
!contains(needs.*.result, 'failure') &&
!contains(needs.*.result, 'cancelled') &&
(needs.changes.outputs.js == 'true' || needs.changes.outputs.python == 'true')
(needs.changes.outputs.js == 'true' || needs.changes.outputs.python == 'true' || needs.changes.outputs.charts == 'true')
name: Release
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit c0aa8ab

Please sign in to comment.