Skip to content

Commit

Permalink
GitHub action: splitting the workflow file in two parts to avoid runn…
Browse files Browse the repository at this point in the history
…ing out of runner's disk space
  • Loading branch information
lnstadrum committed Mar 27, 2024
1 parent 88df576 commit 2f30617
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions .github/workflows/build_and_push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ on:
- cron: '5 9 * * SAT'

jobs:
push_to_registry:
name: Push Docker image to Docker Hub
push_tensorflow_image:
name: Push to DockerHub (TensorFlow)
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -25,14 +25,27 @@ jobs:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Push to Docker Hub (TensorFlow)
- name: Push to DockerHub
uses: docker/build-push-action@v2
with:
push: true
tags: lnstadrum/fastaugment_tf:latest
file: ./tensorflow.Dockerfile

- name: Push to Docker Hub (PyTorch)
push_pytorch_image:
name: Push to DockerHub (PyTorch)
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Push to DockerHub
uses: docker/build-push-action@v2
with:
push: true
Expand Down

0 comments on commit 2f30617

Please sign in to comment.