Skip to content
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

<do not review> feat: test pipeline #508

Open
wants to merge 23 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
feat: test pipeline
  • Loading branch information
maxday committed Aug 19, 2024
commit cb9338dae9b5209388e49b568c81e8fe2551b09c
2 changes: 2 additions & 0 deletions ci/codebuild/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
FROM scratch
ADD sample_artifact .
1 change: 1 addition & 0 deletions ci/codebuild/sample_artifact
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
this is the built artifact
11 changes: 9 additions & 2 deletions ci/codebuild/test.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
version: 0.2

env:
variables:
DOCKER_IMAGE_NAME: "$AWS_ACCOUNT_ID.dkr.ecr.$AWS_REGION.amazonaws.com/$IMAGE_REPO_NAME:${CODEBUILD_WEBHOOK_TRIGGER//\//-}"

phases:
build:
commands:
- echo Build started on `date`
- echo Tag name is $AWS_ACCOUNT_ID.dkr.ecr.$AWS_REGION.amazonaws.com/$IMAGE_REPO_NAME:${CODEBUILD_WEBHOOK_TRIGGER//\//-}
- echo Image name is $DOCKER_IMAGE_NAME
- docker build -t $DOCKER_IMAGE_NAME .
post_build:
commands:
- echo Build completed on `date`
- echo Pushing the Docker image
- echo Pushing the Docker image
- docker push $DOCKER_IMAGE_NAME