Skip to content

Commit

Permalink
Splitting dev and prod
Browse files Browse the repository at this point in the history
  • Loading branch information
jordancaraballo committed Jan 16, 2024
1 parent 7f51c30 commit 88188d2
Show file tree
Hide file tree
Showing 3 changed files with 88 additions and 81 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/ilab-base-dev.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: ilab-base-docker

on:
push:
branches:
- 'develop'

jobs:

ilab-base-dev:
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: |
sudo rm -rf /usr/share/dotnet
sudo rm -rf /opt/ghc
sudo rm -rf "/usr/local/share/boost"
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
-
name: Build and push
uses: docker/build-push-action@v4
with:
context: .
file: ./requirements/Dockerfile
push: true
tags: nasanccs/ilab-base:dev
44 changes: 44 additions & 0 deletions .github/workflows/ilab-base-prod.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: ilab-base-docker

on:
push:
branches:
- 'main'

jobs:

ilab-base-production:
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: |
sudo rm -rf /usr/share/dotnet
sudo rm -rf /opt/ghc
sudo rm -rf "/usr/local/share/boost"
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
-
name: Build and push
uses: docker/build-push-action@v4
with:
context: .
file: ./docker/ilab-base/Dockerfile.ilab-base-gdal-3.3.3
push: true
tags: nasanccs/ilab-base:latest
81 changes: 0 additions & 81 deletions .github/workflows/ilab-base.yaml

This file was deleted.

0 comments on commit 88188d2

Please sign in to comment.