Improved logging in the generate-minimize, improved the random minimizer #168
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Docker Image CI GPU | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
repository: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name || github.repository }} | |
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.ref || github.ref }} | |
- name: Check if secrets exist | |
id: check_secrets | |
run: | | |
if [ -z "${{ secrets.DOCKERHUB_USERNAME }}" ] || [ -z "${{ secrets.DOCKERHUB_TOKEN }}" ]; then | |
echo "Secrets do not exist" | |
echo "push_image=false" >> $GITHUB_ENV | |
else | |
echo "Secrets exist" | |
echo "push_image=true" >> $GITHUB_ENV | |
fi | |
- name: Build and Push Docker Image | |
uses: ./.github/actions/docker-build | |
with: | |
dockerfile: "dockerfile.gpu" | |
image_tag: "gretelxai/gretel:gpu-latest" | |
push_image: ${{ github.event_name == 'push' && env.push_image == 'true' }} | |
dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }} | |
dockerhub_password: ${{ secrets.DOCKERHUB_TOKEN }} | |
optimize_space: "true" |