-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use GitHub Container as Extension Installation. #17
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,7 +24,7 @@ jobs: | |
- name: Build & Run Development Container | ||
uses: devcontainers/[email protected] | ||
with: | ||
imageName: ghcr.io/customink/crypteia | ||
imageName: ghcr.io/customink/crypteia-devcontainer | ||
runCmd: | | ||
./bin/setup | ||
./amzn/setup | ||
|
@@ -46,3 +46,9 @@ jobs: | |
prerelease: ${{ steps.changelog_reader.outputs.status == 'prereleased' }} | ||
draft: ${{ steps.changelog_reader.outputs.status == 'unreleased' }} | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Push Lambda Extension Layer Image | ||
env: | ||
CRYPTEIA_VERSION: ${{ steps.changelog_reader.outputs.version }} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. OMG, I'm so in love with this Action that parses the CHANGELOG. |
||
run: | | ||
echo "${{ secrets.PUBLIC_GITHUB_TOKEN_PACKAGES }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin | ||
./layer/deploy-image | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Using the new |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
FROM alpine | ||
LABEL org.opencontainers.image.source "https://github.com/customink/crypteia" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is pretty neat... GitHub should use this label to associate the package with this repo. |
||
LABEL org.opencontainers.image.description "Rust Lambda Extension for any Runtime to preload SSM Parameters as Secure Environment Variables!" | ||
|
||
RUN mkdir -p /opt/lib | ||
RUN mkdir -p /opt/extensions | ||
COPY ./build/crypteia-amzn /opt/extensions/crypteia | ||
COPY ./build/libcrypteia-amzn.so /opt/lib/libcrypteia.so |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/sh | ||
set -e | ||
|
||
if [ -z "${CRYPTEIA_VERSION}" ]; then | ||
echo "CRYPTEIA_VERSION is not set" | ||
exit 1 | ||
fi | ||
|
||
TAG="ghcr.io/customink/crypteia-extension:${CRYPTEIA_VERSION}" | ||
|
||
echo "== [Lambda Extension Image] building... ==" | ||
docker build --tag $TAG --file layer/Dockerfile . | ||
|
||
echo "== [Lambda Extension Image] push... ==" | ||
docker push $TAG |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not part of the PR here but I wanted to have each package (two container images soon) associated with this repo have intention revealing names.