-
Notifications
You must be signed in to change notification settings - Fork 206
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dockerfile: Replace alpine by debian. Use same dockerfile for amd and…
… arm (#2192) * Add wget package * Using same dockerfile for amd and arm * Delete old dockerfiles * Using debian-slim
- Loading branch information
1 parent
4e9521d
commit a59dd19
Showing
5 changed files
with
31 additions
and
208 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 |
---|---|---|
|
@@ -7,7 +7,7 @@ on: | |
workflow_dispatch: | ||
|
||
jobs: | ||
build-container-geth-amd-sha: | ||
build-container-geth-sha: | ||
runs-on: [self-hosted, blockchain, 8-cpu] | ||
permissions: | ||
contents: read | ||
|
@@ -25,40 +25,15 @@ jobs: | |
- name: Build and push container | ||
uses: celo-org/reusable-workflows/.github/actions/build-container@9817fca8d235a679e56bdcc72c31dfc548413805 | ||
with: | ||
platforms: linux/amd64 | ||
platforms: linux/amd64,linux/arm64 | ||
registry: us-west1-docker.pkg.dev/devopsre/dev-images/geth | ||
tag: ${{ github.sha }} | ||
context: . | ||
dockerfile: Dockerfile | ||
push: ${{ fromJSON(true) }} | ||
load: ${{ fromJSON(false) }} | ||
|
||
build-container-geth-arm-sha: | ||
runs-on: [self-hosted, blockchain, 8-cpu] | ||
permissions: | ||
contents: read | ||
id-token: write | ||
security-events: write | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Login at GCP Artifact Registry | ||
uses: celo-org/reusable-workflows/.github/actions/auth-gcp-artifact-registry@9817fca8d235a679e56bdcc72c31dfc548413805 | ||
with: | ||
workload-id-provider: 'projects/1094498259535/locations/global/workloadIdentityPools/gh-celo-blockchain-dev/providers/github-by-repos' | ||
service-account: '[email protected]' | ||
artifact-registry: us-west1-docker.pkg.dev/devopsre/dev-images/geth | ||
- name: Build and push container | ||
uses: celo-org/reusable-workflows/.github/actions/build-container@9817fca8d235a679e56bdcc72c31dfc548413805 | ||
with: | ||
platforms: linux/arm64 | ||
registry: us-west1-docker.pkg.dev/devopsre/dev-images/geth | ||
tag: ${{ github.sha }} | ||
context: . | ||
dockerfile: Dockerfile.arm64 | ||
push: ${{ fromJSON(true) }} | ||
load: ${{ fromJSON(false) }} | ||
|
||
build-container-geth-amd-master: | ||
build-container-geth-master: | ||
runs-on: [self-hosted, blockchain, 8-cpu] | ||
if: github.ref == 'refs/heads/master' | ||
permissions: | ||
|
@@ -76,40 +51,14 @@ jobs: | |
- name: Build and push container | ||
uses: celo-org/reusable-workflows/.github/actions/build-container@9817fca8d235a679e56bdcc72c31dfc548413805 | ||
with: | ||
platforms: linux/amd64 | ||
platforms: linux/amd64,linux/arm64 | ||
registry: us-west1-docker.pkg.dev/devopsre/dev-images/geth | ||
tag: master | ||
context: . | ||
dockerfile: Dockerfile | ||
push: ${{ fromJSON(true) }} | ||
load: ${{ fromJSON(false) }} | ||
|
||
build-container-geth-arm-master: | ||
runs-on: [self-hosted, blockchain, 8-cpu] | ||
if: github.ref == 'refs/heads/master' | ||
permissions: | ||
contents: read | ||
id-token: write | ||
security-events: write | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Login at GCP Artifact Registry | ||
uses: celo-org/reusable-workflows/.github/actions/auth-gcp-artifact-registry@9817fca8d235a679e56bdcc72c31dfc548413805 | ||
with: | ||
workload-id-provider: 'projects/1094498259535/locations/global/workloadIdentityPools/gh-celo-blockchain/providers/github-by-repos' | ||
service-account: '[email protected]' | ||
artifact-registry: us-west1-docker.pkg.dev/devopsre/celo-blockchain-public/geth | ||
- name: Build and push container | ||
uses: celo-org/reusable-workflows/.github/actions/build-container@9817fca8d235a679e56bdcc72c31dfc548413805 | ||
with: | ||
platforms: linux/arm64 | ||
registry: us-west1-docker.pkg.dev/devopsre/dev-images/geth | ||
tag: master | ||
context: . | ||
dockerfile: Dockerfile.arm64 | ||
push: ${{ fromJSON(true) }} | ||
load: ${{ fromJSON(false) }} | ||
|
||
build-container-geth-all-master: | ||
runs-on: [self-hosted, blockchain, 8-cpu] | ||
if: github.ref == 'refs/heads/master' | ||
|
@@ -128,8 +77,8 @@ jobs: | |
- name: Build and push container | ||
uses: celo-org/reusable-workflows/.github/actions/build-container@9817fca8d235a679e56bdcc72c31dfc548413805 | ||
with: | ||
platforms: linux/amd64 | ||
registry: us-west1-docker.pkg.dev/devopsre/dev-images/geth | ||
platforms: linux/amd64,linux/arm64 | ||
registry: us-west1-docker.pkg.dev/devopsre/dev-images/geth-all | ||
tag: master | ||
context: . | ||
dockerfile: Dockerfile.alltools | ||
|
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.