Skip to content

Commit

Permalink
Merge branch 'main' into python-conda-staging
Browse files Browse the repository at this point in the history
  • Loading branch information
jmlord committed Dec 17, 2024
2 parents 3f23157 + 570bc84 commit bcd26ac
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 7 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/docker_runner-conda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@ on:
push:
branches:
- main
- '**staging'
paths:
- 'runners/conda-dockerfile'
- 'runners/r-environment.yml'
- 'runners/python-environment.yml'
- 'runners/.condarc'

jobs:
Expand All @@ -23,8 +25,9 @@ jobs:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Extract metadata (tags, labels) for Docker
id: meta
- name: Extract metadata (tags, labels) for Docker, main branch
if: github.ref == 'refs/heads/main'
id: metadata-main
uses: docker/metadata-action@v4
with:
images: geobon/bon-in-a-box
Expand All @@ -34,6 +37,16 @@ jobs:
# In case we want to replicate a specific legacy setup
type=sha,prefix=runner-conda-
- name: Extract metadata (tags, labels) for Docker, staging branch
if: github.ref != 'refs/heads/main'
id: metadata-staging
uses: docker/metadata-action@v4
with:
images: geobon/bon-in-a-box
tags: |
# Image used in compose file
type=raw,value=runner-conda-${{github.ref_name}}
- name: Build and push Docker image
uses: docker/build-push-action@v3
with:
Expand Down
22 changes: 17 additions & 5 deletions .github/workflows/docker_runner-julia.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
push:
branches:
- main
- '**staging'
paths:
- 'runners/julia-dockerfile'

Expand All @@ -14,14 +15,15 @@ jobs:
steps:
- name: Check out the repo
uses: actions/checkout@v3

- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Extract metadata (tags, labels) for Docker

- name: Extract metadata (tags, labels) for Docker, main branch
if: github.ref == 'refs/heads/main'
id: meta
uses: docker/metadata-action@v4
with:
Expand All @@ -31,7 +33,17 @@ jobs:
type=raw,value=runner-julia
# In case we want to replicate a specific legacy setup
type=sha,prefix=runner-julia-
- name: Extract metadata (tags, labels) for Docker, staging branch
if: github.ref != 'refs/heads/main'
id: metadata-staging
uses: docker/metadata-action@v4
with:
images: geobon/bon-in-a-box
tags: |
# Image used in compose file
type=raw,value=runner-julia-${{github.ref_name}}
- name: Build and push Docker image
uses: docker/build-push-action@v3
with:
Expand All @@ -40,4 +52,4 @@ jobs:
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

0 comments on commit bcd26ac

Please sign in to comment.