Skip to content

Commit

Permalink
fix lambda dockerfile and gh actions
Browse files Browse the repository at this point in the history
  • Loading branch information
dotxlem committed Apr 3, 2024
1 parent bcc8d1b commit b079506
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
# - name: 'Checkout'
# uses: actions/checkout@v2
# - name: 'Get Version'
# run: echo "ASML_VERSION=$(cat ./cli/Cargo.toml | grep version -m 1 | awk '{print $3}' | sed 's/\"//g')" >> $GITHUB_ENV
# run: echo "ASML_VERSION=$(cat ./crates/cli/Cargo.toml | grep version -m 1 | awk '{print $3}' | sed 's/\"//g')" >> $GITHUB_ENV
# - name: 'Build Image'
# run: docker build -t assemblylift/asml-lambda-alpine . --file docker/asml-lambda-alpine
# - name: 'Add ECR Tag'
Expand All @@ -69,7 +69,7 @@ jobs:
# - name: 'Checkout'
# uses: actions/checkout@v2
# - name: 'Get Version'
# run: echo "ASML_VERSION=$(cat ./cli/Cargo.toml | grep version -m 1 | awk '{print $3}' | sed 's/\"//g')" >> $GITHUB_ENV
# run: echo "ASML_VERSION=$(cat ./crates/cli/Cargo.toml | grep version -m 1 | awk '{print $3}' | sed 's/\"//g')" >> $GITHUB_ENV
# - name: 'Build Image'
# run: docker build -t assemblylift/openfaas-alpine . --file docker/asml-openfaas-alpine
# - name: 'Add ECR Tag'
Expand Down Expand Up @@ -98,7 +98,7 @@ jobs:
with:
submodules: recursive
- name: 'Get Version'
run: echo "ASML_VERSION=$(cat ./cli/Cargo.toml | grep version -m 1 | awk '{print $3}' | sed 's/\"//g')" >> $GITHUB_ENV
run: echo "ASML_VERSION=$(cat ./crates/cli/Cargo.toml | grep version -m 1 | awk '{print $3}' | sed 's/\"//g')" >> $GITHUB_ENV
- name: 'Build Image'
run: docker build -t assemblylift/hyper-debian . --file docker/asml-hyper-debian
- name: 'Add ECR Tag'
Expand Down Expand Up @@ -133,9 +133,9 @@ jobs:
with:
command: build
use-cross: false
args: --release --manifest-path ./cli/Cargo.toml
args: --release --manifest-path ./crates/cli/Cargo.toml
- name: 'Get Version'
run: echo "ASML_VERSION=$(cat ./cli/Cargo.toml | grep version -m 1 | awk '{print $3}' | sed 's/\"//g')" >> $GITHUB_ENV
run: echo "ASML_VERSION=$(cat ./crates/cli/Cargo.toml | grep version -m 1 | awk '{print $3}' | sed 's/\"//g')" >> $GITHUB_ENV
- name: 'Upload to S3 @ akkoro-public'
run: aws s3 cp ./target/release/asml s3://public.assemblylift.akkoro.io/cli/$ASML_VERSION/x86_64-apple-darwin/asml --acl public-read

Expand Down Expand Up @@ -164,9 +164,9 @@ jobs:
with:
command: build
use-cross: false
args: --release --manifest-path ./cli/Cargo.toml
args: --release --manifest-path ./crates/cli/Cargo.toml
- name: 'Get Version'
run: echo "ASML_VERSION=$(cat ./cli/Cargo.toml | grep version -m 1 | awk '{print $3}' | sed 's/\"//g')" >> $GITHUB_ENV
run: echo "ASML_VERSION=$(cat ./crates/cli/Cargo.toml | grep version -m 1 | awk '{print $3}' | sed 's/\"//g')" >> $GITHUB_ENV
- name: 'Upload to S3 @ akkoro-public'
run: aws s3 cp ./target/release/asml s3://public.assemblylift.akkoro.io/cli/$ASML_VERSION/x86_64-linux-gnu/ubuntu-20.04/asml --acl public-read

Expand Down Expand Up @@ -197,9 +197,9 @@ jobs:
with:
command: build
use-cross: false
args: --release --manifest-path ./cli/Cargo.toml
args: --release --manifest-path ./crates/cli/Cargo.toml
- name: 'Get Version'
run: echo "ASML_VERSION=$(cat ./cli/Cargo.toml | grep version -m 1 | awk '{print $3}' | sed 's/\"//g')" >> $GITHUB_ENV
run: echo "ASML_VERSION=$(cat ./crates/cli/Cargo.toml | grep version -m 1 | awk '{print $3}' | sed 's/\"//g')" >> $GITHUB_ENV
- name: 'Upload to S3 @ akkoro-public'
run: aws s3 cp ./target/release/asml s3://public.assemblylift.akkoro.io/cli/$ASML_VERSION/x86_64-linux-gnu/ubuntu-22.04/asml --acl public-read

Expand Down Expand Up @@ -227,6 +227,6 @@ jobs:
use-cross: false
args: --release --target wasm32-wasi --manifest-path ./builtin/functions/verify-macaroon/Cargo.toml
- name: 'Get Version'
run: echo "ASML_VERSION=$(cat ./cli/Cargo.toml | grep version -m 1 | awk '{print $3}' | sed 's/\"//g')" >> $GITHUB_ENV
run: echo "ASML_VERSION=$(cat ./crates/cli/Cargo.toml | grep version -m 1 | awk '{print $3}' | sed 's/\"//g')" >> $GITHUB_ENV
- name: 'Upload to S3 @ akkoro-public'
run: aws s3 cp ./target/wasm32-wasi/release/assemblylift-builtins-verify-macaroon.wasm s3://public.assemblylift.akkoro.io/builtins/$ASML_VERSION/functions/assemblylift-builtins-verify-macaroon.wasm --acl public-read
2 changes: 1 addition & 1 deletion docker/asml-lambda-default
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ COPY . .

RUN cd ./crates/runtimes/aws-lambda/host && $HOME/.cargo/bin/cargo build --release

CMD cat cli/Cargo.toml | grep version -m 1 | awk '{print $3}' | sed 's/"//g'
CMD cat crates/cli/Cargo.toml | grep version -m 1 | awk '{print $3}' | sed 's/"//g'

0 comments on commit b079506

Please sign in to comment.