Skip to content

Commit

Permalink
add bookworm image
Browse files Browse the repository at this point in the history
  • Loading branch information
mats16 committed Feb 9, 2024
1 parent 21c99a7 commit bbef8ee
Showing 1 changed file with 31 additions and 19 deletions.
50 changes: 31 additions & 19 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ on:
- 'main'

jobs:
bullseye:
name: Build bullseye image
py-3-11-bullseye:
name: 3.11-bullseye
runs-on: ubuntu-latest
permissions:
id-token: write # needed to interact with GitHub's OIDC Token endpoint.
Expand All @@ -17,12 +17,6 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

#- name: Set up QEMU
# uses: docker/setup-qemu-action@v3

#- name: Set up Docker Buildx
# uses: docker/setup-buildx-action@v3

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
with:
Expand All @@ -33,20 +27,38 @@ jobs:
id: login-ecr
uses: aws-actions/amazon-ecr-login@v2

#- name: Docker meta
# id: meta
# uses: docker/metadata-action@v5
# with:
# images: ${{ steps.login-ecr.outputs.registry }}/${{ env.REPOSITORY }}
# tags: |
# type=ref,event=branch
# type=ref,event=pr
# type=semver,pattern={{version}}
# type=semver,pattern={{major}}.{{minor}}

- name: Build and Push
uses: docker/build-push-action@v5
with:
context: 3.11/bullseye
push: true
tags: ${{ steps.login-ecr.outputs.registry }}/${{ env.REPOSITORY }}:3.11-bullseye

py-3-11-bookworm:
name: 3.11-bookworm
runs-on: ubuntu-latest
permissions:
id-token: write # needed to interact with GitHub's OIDC Token endpoint.
contents: read
env:
REPOSITORY: jupyter
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: arn:aws:iam::767397804933:role/github-actions-image-publishing-role-dpzyqzl6r1zt
aws-region: us-west-2

- name: Login to Amazon ECR
id: login-ecr
uses: aws-actions/amazon-ecr-login@v2

- name: Build and Push
uses: docker/build-push-action@v5
with:
context: 3.11/bookworm
push: true
tags: ${{ steps.login-ecr.outputs.registry }}/${{ env.REPOSITORY }}:3.11-bookworm

0 comments on commit bbef8ee

Please sign in to comment.