From 2c6b1eb113f884ce6752e0ecd781f5d0e82b28db Mon Sep 17 00:00:00 2001 From: Jordan Alexis Caraballo-Vega Date: Mon, 30 Sep 2024 08:03:05 -0400 Subject: [PATCH] Create docker-hub-cpu.yaml --- .github/workflows/docker-hub-cpu.yaml | 55 +++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 .github/workflows/docker-hub-cpu.yaml diff --git a/.github/workflows/docker-hub-cpu.yaml b/.github/workflows/docker-hub-cpu.yaml new file mode 100644 index 0000000..fbfd99f --- /dev/null +++ b/.github/workflows/docker-hub-cpu.yaml @@ -0,0 +1,55 @@ +name: CI to Dockerhub + +on: + push: + branches: + - 'main' + +jobs: + docker: + runs-on: ubuntu-latest + steps: + - + name: Checkout + uses: actions/checkout@v3 + - + name: Set up QEMU + uses: docker/setup-qemu-action@v2 + - + name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + - + name: Login to Docker Hub + uses: docker/login-action@v2 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + + - + name: Lower github-runner storage + run: | + # Remove software and language runtimes we're not using + sudo rm -rf \ + "$AGENT_TOOLSDIRECTORY" \ + /opt/google/chrome \ + /opt/microsoft/msedge \ + /opt/microsoft/powershell \ + /opt/pipx \ + /usr/lib/mono \ + /usr/local/julia* \ + /usr/local/lib/android \ + /usr/local/lib/node_modules \ + /usr/local/share/chromium \ + /usr/local/share/powershell \ + /usr/share/dotnet \ + /usr/share/swift + df -h / + + - + name: Build and push + uses: docker/build-push-action@v4 + with: + context: . + file: ./requirements/Dockerfile.cpu + push: true + tags: nasanccs/vhr-toolkit:cpu