Skip to content

Commit

Permalink
Update docker-image.yml
Browse files Browse the repository at this point in the history
Fix runners
  • Loading branch information
sprivite authored Dec 19, 2023
1 parent 516c9bf commit 82fa62d
Showing 1 changed file with 7 additions and 15 deletions.
22 changes: 7 additions & 15 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on: [push, pull_request]
jobs:

linting:
runs-on: [ self-hosted, Linux, external-k8s ]
runs-on: ubuntu-latest
steps:
- name: Checkout Repository 🛎️
uses: actions/checkout@v3
Expand All @@ -23,7 +23,7 @@ jobs:

base_image:
name: Base Image for standard environment
runs-on: [ self-hosted, Linux, external-k8s ]
runs-on: ubuntu-latest
needs: linting

steps:
Expand All @@ -37,12 +37,12 @@ jobs:
run: docker build -t ${DOCKER_TAG} -f environments/environments/Dockerfile .
-
name: Pytest
run: docker run ieg-docker-dev-k8s.artifactory.bayer.com/pybalance:${DOCKER_TAG} pytest
run: docker run ${DOCKER_TAG} pytest


base_image_gpu:
name: Base Image for GPU environment
runs-on: [ self-hosted, Linux, external-k8s ]
runs-on: ubuntu-latest
needs: linting

steps:
Expand All @@ -59,17 +59,9 @@ jobs:
username: ${{ secrets.ARTIFACTORY_USERNAME }}
password: ${{ secrets.ARTIFACTORY_APIKEY }}
-
name: Build & push Docker image 🐳
uses: mr-smithers-excellent/docker-build-push@v5
with:
image: pybalance
registry: ieg-docker-dev-k8s.artifactory.bayer.com
username: ${{ secrets.ARTIFACTORY_USERNAME }}
password: ${{ secrets.ARTIFACTORY_APIKEY }}
tags: ${{ env.DOCKER_TAG }}
directory: .
dockerfile: environments/Dockerfile.gpu
name: docker
run: docker build -t ${DOCKER_TAG} -f environments/environments/Dockerfile.gpu .
-
name: Pytest
run: docker run ieg-docker-dev-k8s.artifactory.bayer.com/pybalance:${DOCKER_TAG} pytest
run: docker run ${DOCKER_TAG} pytest

0 comments on commit 82fa62d

Please sign in to comment.