Build Latest Image #59
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: Build Latest Image | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "59 8 * * *" | |
permissions: | |
id-token: write | |
contents: read | |
jobs: | |
build_cpu_training: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Configure AWS Credentials | |
uses: aws-actions/configure-aws-credentials@v1 | |
with: | |
role-to-assume: arn:aws:iam::369469875935:role/CloudCIECRRole | |
role-duration-seconds: 3600 | |
aws-region: us-east-1 | |
- name: Free Disk Space (Ubuntu) | |
# uses: jlumbroso/[email protected] | |
uses: hirnidrin/free-disk-space@main # revert back once fix in https://github.com/jlumbroso/free-disk-space/pull/11 | |
with: | |
tool-cache: false | |
android: true | |
dotnet: true | |
haskell: true | |
large-packages: true | |
docker-images: true | |
swap-storage: true | |
- name: Build the Docker image | |
run: | | |
cd CI/docker | |
chmod +x ./login_ecr.sh; ./login_ecr.sh | |
docker build -f Dockerfile.cpu-training -t autogluon-nightly-training:cpu-latest . | |
docker tag autogluon-nightly-training:cpu-latest 369469875935.dkr.ecr.us-east-1.amazonaws.com/autogluon-nightly-training:cpu-latest | |
docker push 369469875935.dkr.ecr.us-east-1.amazonaws.com/autogluon-nightly-training:cpu-latest | |
build_cpu_inference: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Configure AWS Credentials | |
uses: aws-actions/configure-aws-credentials@v1 | |
with: | |
role-to-assume: arn:aws:iam::369469875935:role/CloudCIECRRole | |
role-duration-seconds: 3600 | |
aws-region: us-east-1 | |
- name: Free Disk Space (Ubuntu) | |
# uses: jlumbroso/[email protected] | |
uses: hirnidrin/free-disk-space@main # revert back once fix in https://github.com/jlumbroso/free-disk-space/pull/11 | |
with: | |
tool-cache: false | |
android: true | |
dotnet: true | |
haskell: true | |
large-packages: true | |
docker-images: true | |
swap-storage: true | |
- name: Build the Docker image | |
run: | | |
cd CI/docker | |
chmod +x ./login_ecr.sh; ./login_ecr.sh | |
docker build -f Dockerfile.cpu-inference -t autogluon-nightly-inference:cpu-latest . | |
docker tag autogluon-nightly-inference:cpu-latest 369469875935.dkr.ecr.us-east-1.amazonaws.com/autogluon-nightly-inference:cpu-latest | |
docker push 369469875935.dkr.ecr.us-east-1.amazonaws.com/autogluon-nightly-inference:cpu-latest | |
build_gpu_training: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Configure AWS Credentials | |
uses: aws-actions/configure-aws-credentials@v1 | |
with: | |
role-to-assume: arn:aws:iam::369469875935:role/CloudCIECRRole | |
role-duration-seconds: 3600 | |
aws-region: us-east-1 | |
- name: Free Disk Space (Ubuntu) | |
# uses: jlumbroso/[email protected] | |
uses: hirnidrin/free-disk-space@main # revert back once fix in https://github.com/jlumbroso/free-disk-space/pull/11 | |
with: | |
tool-cache: false | |
android: true | |
dotnet: true | |
haskell: true | |
large-packages: true | |
docker-images: true | |
swap-storage: true | |
- name: Build the Docker image | |
run: | | |
cd CI/docker | |
chmod +x ./login_ecr.sh; ./login_ecr.sh | |
docker build -f Dockerfile.gpu-training -t autogluon-nightly-training:gpu-latest . | |
docker tag autogluon-nightly-training:gpu-latest 369469875935.dkr.ecr.us-east-1.amazonaws.com/autogluon-nightly-training:gpu-latest | |
docker push 369469875935.dkr.ecr.us-east-1.amazonaws.com/autogluon-nightly-training:gpu-latest | |
build_gpu_inference: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Configure AWS Credentials | |
uses: aws-actions/configure-aws-credentials@v1 | |
with: | |
role-to-assume: arn:aws:iam::369469875935:role/CloudCIECRRole | |
role-duration-seconds: 3600 | |
aws-region: us-east-1 | |
- name: Free Disk Space (Ubuntu) | |
# uses: jlumbroso/[email protected] | |
uses: hirnidrin/free-disk-space@main # revert back once fix in https://github.com/jlumbroso/free-disk-space/pull/11 | |
with: | |
tool-cache: false | |
android: true | |
dotnet: true | |
haskell: true | |
large-packages: true | |
docker-images: true | |
swap-storage: true | |
- name: Build the Docker image | |
run: | | |
cd CI/docker | |
chmod +x ./login_ecr.sh; ./login_ecr.sh | |
docker build -f Dockerfile.gpu-inference -t autogluon-nightly-inference:gpu-latest . | |
docker tag autogluon-nightly-inference:gpu-latest 369469875935.dkr.ecr.us-east-1.amazonaws.com/autogluon-nightly-inference:gpu-latest | |
docker push 369469875935.dkr.ecr.us-east-1.amazonaws.com/autogluon-nightly-inference:gpu-latest |