Skip to content

Commit

Permalink
action to add entrypoint.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
Swapnil-Sagar committed Oct 29, 2024
1 parent 8e27ba5 commit fc418e3
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/build-enclave.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,21 @@ jobs:
nitro-cli build-enclave --docker-uri enclave:latest --output-file /app/mount/enclave/enclave.eif
EOF
chmod +x entrypoint.sh
fi
- name: Commit and push entrypoint.sh if created
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git add entrypoint.sh
git commit -m "Add entrypoint.sh generated by GitHub Actions" || echo "No changes to commit"
git push
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Build and Run Enclave
run: |
docker build -t enclave .
docker run --privileged -v `pwd`:/app/mount enclave
docker run --privileged -v $(pwd):/app/mount enclave

0 comments on commit fc418e3

Please sign in to comment.