Skip to content

Commit

Permalink
ci: push to Envoy container images to ECR PE-5601
Browse files Browse the repository at this point in the history
This is for our internal pipelines.

Also, adds a revision label to Envoy images to help users know what
revision they're running even if they're using the 'latest' tag.
  • Loading branch information
djwhitt committed Feb 7, 2024
1 parent e2645b6 commit 7112ed5
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/build-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ jobs:
- name: Login to ECR
uses: aws-actions/amazon-ecr-login@v2

- name: Push image ECR
- name: Build and push core container image to ECR
uses: docker/build-push-action@v5
with:
labels: |
Expand All @@ -97,7 +97,19 @@ jobs:
${{ env.ECR_REGISTRY }}/ar-io-core:develop
${{ env.ECR_REGISTRY }}/ar-io-core:${{ github.sha }}
# Start CodePipeline to test and deploy image
- name: Build and push envoy container image to ECR
if: ${{ github.ref == 'refs/heads/develop' }}
uses: docker/build-push-action@v5
with:
context: envoy/
labels: |
org.opencontainers.image.revision=${{ github.sha }}
push: true
tags: |
${{ env.ECR_REGISTRY }}/ar-io-envoy:develop
${{ env.ECR_REGISTRY }}/ar-io-envoy:${{ github.sha }}
# Start CodePipeline to test and deploy images
- name: Start CodePipeline
if: github.ref == 'refs/heads/develop'
run: |
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/build-envoy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ jobs:
if: ${{ github.ref == 'refs/heads/develop' }}
uses: docker/build-push-action@v5
with:
labels: |
org.opencontainers.image.revision=${{ github.sha }}
context: envoy/
push: true
platforms: linux/amd64,linux/arm64
Expand Down

0 comments on commit 7112ed5

Please sign in to comment.