Skip to content

Commit

Permalink
chore: Build images for rust capture and vector capture for multi-arch (
Browse files Browse the repository at this point in the history
  • Loading branch information
frankh authored Aug 12, 2024
1 parent c67aed7 commit ce575be
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 30 deletions.
6 changes: 0 additions & 6 deletions .github/workflows/container-images-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,6 @@ jobs:
- name: Set up Depot CLI
uses: depot/setup-action@v1

- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: posthog
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
with:
Expand Down
15 changes: 6 additions & 9 deletions .github/workflows/rust-docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,23 +42,20 @@ jobs:
- name: Set up Depot CLI
uses: depot/setup-action@v1

- name: Login to DockerHub
uses: docker/login-action@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
username: posthog
password: ${{ secrets.DOCKERHUB_TOKEN }}
image: tonistiigi/binfmt:latest
platforms: all

- name: Login to ghcr.io
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
logout: false

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Docker meta
id: meta
uses: docker/metadata-action@v5
Expand All @@ -84,7 +81,7 @@ jobs:
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
platforms: linux/arm64
platforms: linux/arm64,linux/amd64
cache-from: type=gha
cache-to: type=gha,mode=max
build-args: BIN=${{ matrix.image }}
Expand Down
6 changes: 0 additions & 6 deletions .github/workflows/rust-hook-migrator-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,6 @@ jobs:
- name: Set up Depot CLI
uses: depot/setup-action@v1

- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: posthog
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Login to ghcr.io
uses: docker/login-action@v2
with:
Expand Down
8 changes: 0 additions & 8 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,14 +103,6 @@ jobs:
- uses: actions/checkout@v3
if: needs.changes.outputs.rust == 'true' && matrix.package == 'feature-flags'

- name: Login to DockerHub
if: needs.changes.outputs.rust == 'true'
uses: docker/login-action@v2
continue-on-error: true
with:
username: posthog
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Setup main repo dependencies for flags
if: needs.changes.outputs.rust == 'true' && matrix.package == 'feature-flags'
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/vector-docker-build-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
platforms: linux/arm64
platforms: linux/arm64,linux/amd64

deploy:
runs-on: ubuntu-latest
Expand Down

0 comments on commit ce575be

Please sign in to comment.