Skip to content

Commit

Permalink
Add Nightly Docker Build (aws-observability#679)
Browse files Browse the repository at this point in the history
  • Loading branch information
sethAmazon committed Oct 25, 2021
1 parent a780f88 commit 2d6afbc
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .github/workflows/nightly-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,18 @@ jobs:
run: make test

- name: Unit test aws components
run: make test-aws-components
run: make test-aws-components

- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.INTEG_TEST_AWS_KEY_ID }}
aws-secret-access-key: ${{ secrets.INTEG_TEST_AWS_KEY_SECRET }}
aws-region: us-east-1

- name: Login ECR
id: login-ecr
uses: aws-actions/amazon-ecr-login@v1

- name: upload to ECR
run: make docker-nightly
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,12 @@ package-deb: build
docker-build:
docker build -t $(DOCKER_NAMESPACE)/$(COMPONENT):$(VERSION) -f ./cmd/$(COMPONENT)/Dockerfile .

.PHONY: docker-nightly
docker-nightly:
docker buildx create --use --name mybuildx
docker buildx build -t public.ecr.aws/aws-otel-test/nightly-build:latest -f ./cmd/$(COMPONENT)/Dockerfile --platform=linux/amd64 --push .
docker buildx rm mybuildx

.PHONY: docker-push
docker-push:
docker push $(DOCKER_NAMESPACE)/$(COMPONENT):$(VERSION)
Expand Down

0 comments on commit 2d6afbc

Please sign in to comment.