-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add githib workflows and improved Dockerfile with github tokens (…
…#16) * feat: add githib workflows and improved Dockerfile with github tokens * fix: registry command * fix: image_name * fix: repo name
- Loading branch information
1 parent
d51761e
commit aa76ba7
Showing
3 changed files
with
36 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: CI/CD | ||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
pull_request: | ||
|
||
jobs: | ||
docker-build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Build Image | ||
id: build-image | ||
env: | ||
REGISTRY: ghcr.io | ||
REPOSITORY: apeworx/hosted-compiler | ||
# NOTE: Our image tagging scheme is to tag all builds on "main" with "latest", | ||
# and then when publishing to tag it with the release version tag + "stable" | ||
IMAGE_TAG: latest | ||
run: | | ||
docker build \ | ||
-t $REGISTRY/$REPOSITORY:$IMAGE_TAG \ | ||
. | ||
echo "image=$REGISTRY/$REPOSITORY:$IMAGE_TAG" >> $GITHUB_OUTPUT | ||
- name: Publish Image | ||
# Skip on PRs | ||
if: github.event_name != 'pull_request' | ||
run: docker push ${{ steps.build-image.outputs.image }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,5 @@ uvicorn[standard] | |
eth-ape | ||
vyper | ||
ape-vyper | ||
python-multipart | ||
python-multipart | ||
vvm>=0.2 |