Skip to content

Commit

Permalink
Merge pull request #33 from numerai/pschork/public_ref_tagging
Browse files Browse the repository at this point in the history
Tag public docker images with git ref
  • Loading branch information
pschork authored Nov 9, 2023
2 parents c0569d6 + 6877d04 commit c4d327c
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 3 deletions.
14 changes: 13 additions & 1 deletion .github/workflows/deploy-3-10.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Extract short git SHA
run: echo "GIT_REF=`git rev-parse --short HEAD`" >> $GITHUB_ENV

- name: Log in to Github Container registry
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
with:
Expand All @@ -32,7 +35,7 @@ jobs:
with:
images: ${{ env.REGISTRY }}/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}_py_3_10

- name: Push Docker image to Github Container registry
- name: Push Docker image as LATEST to Github Container registry
uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
with:
context: .
Expand All @@ -41,6 +44,15 @@ jobs:
tags: ${{ env.REGISTRY }}/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}_py_3_10:latest
labels: ${{ steps.meta.outputs.labels }}

- name: Push Docker image git ref to Github Container registry
uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
with:
context: .
file: ./py3.10/Dockerfile
push: true
tags: ${{ env.REGISTRY }}/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}_py_3_10:${{ env.GIT_REF }}
labels: ${{ steps.meta.outputs.labels }}

internal-py310-image:
runs-on: ubuntu-latest
permissions:
Expand Down
14 changes: 13 additions & 1 deletion .github/workflows/deploy-3-11.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Extract short git SHA
run: echo "GIT_REF=`git rev-parse --short HEAD`" >> $GITHUB_ENV

- name: Log in to Github Container registry
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
with:
Expand All @@ -32,7 +35,7 @@ jobs:
with:
images: ${{ env.REGISTRY }}/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}_py_3_11

- name: Push Docker image to Github Container registry
- name: Push Docker image as LATEST to Github Container registry
uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
with:
context: .
Expand All @@ -41,6 +44,15 @@ jobs:
tags: ${{ env.REGISTRY }}/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}_py_3_11:latest
labels: ${{ steps.meta.outputs.labels }}

- name: Push Docker image git ref to Github Container registry
uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
with:
context: .
file: ./py3.11/Dockerfile
push: true
tags: ${{ env.REGISTRY }}/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}_py_3_11:${{ env.GIT_REF }}
labels: ${{ steps.meta.outputs.labels }}

internal-py311-image:
runs-on: ubuntu-latest
permissions:
Expand Down
14 changes: 13 additions & 1 deletion .github/workflows/deploy-3-9.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Extract short git SHA
run: echo "GIT_REF=`git rev-parse --short HEAD`" >> $GITHUB_ENV

- name: Log in to Github Container registry
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
with:
Expand All @@ -32,7 +35,7 @@ jobs:
with:
images: ${{ env.REGISTRY }}/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}_py_3_9

- name: Push Docker image to Github Container registry
- name: Push Docker image as LATEST to Github Container registry
uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
with:
context: .
Expand All @@ -41,6 +44,15 @@ jobs:
tags: ${{ env.REGISTRY }}/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}_py_3_9:latest
labels: ${{ steps.meta.outputs.labels }}

- name: Push Docker image git ref to Github Container registry
uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
with:
context: .
file: ./py3.9/Dockerfile
push: true
tags: ${{ env.REGISTRY }}/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}_py_3_9:${{ env.GIT_REF }}
labels: ${{ steps.meta.outputs.labels }}

internal-py39-image:
runs-on: ubuntu-latest
permissions:
Expand Down

0 comments on commit c4d327c

Please sign in to comment.