Skip to content

Commit

Permalink
Switch to pre-built bootstrap
Browse files Browse the repository at this point in the history
  • Loading branch information
mdehoog committed Sep 17, 2024
1 parent d0d20e6 commit 841c0de
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 16 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@ env:
jobs:
build:
runs-on: ubuntu-latest

permissions:
contents: read
packages: write
attestations: write
id-token: write

steps:
- name: Checkout
uses: actions/checkout@v2
Expand Down
18 changes: 2 additions & 16 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,19 +1,5 @@
# nixos/nix:2.21.4
FROM nixos/nix@sha256:91b689f94a101aa67f95034dffd9a4858e85d0946f67c64dd65ed241644454b9 AS bootstrap

RUN mkdir /build
WORKDIR /build

ENV REPO=https://github.com/aws/aws-nitro-enclaves-sdk-bootstrap.git
ENV COMMIT=7614f19963e4e956493b3260fda4d62834bb281c
RUN git init && \
git remote add origin $REPO && \
git fetch --depth=1 origin $COMMIT && \
git reset --hard FETCH_HEAD

RUN mkdir out
RUN nix-build -A kernel && cp -r result/* out/
RUN nix-build -A init && cp -r result/* out/
# github.com/mdehoog/aws-nitro-enclaves-sdk-bootstrap
FROM ghcr.io/mdehoog/aws-nitro-enclaves-sdk-bootstrap@sha256:6e5e53bd47370dbc1920208e93d222533a36f9f5dc85615591cbfe56a03312b0 AS bootstrap


# golang:1.22.6
Expand Down

0 comments on commit 841c0de

Please sign in to comment.