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

chore: add ARM image build support #938

Open
wants to merge 26 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
8fbd308
chore: add ARM image build support
VinneyJ Oct 8, 2024
2db7521
fix: formatting with prettier
VinneyJ Oct 8, 2024
11e285d
chore: add ARM image build support
VinneyJ Oct 8, 2024
2b2f7d4
chore: add ARM Image build support
VinneyJ Oct 8, 2024
7dec012
fix: revert ARM image support
VinneyJ Oct 8, 2024
67504f6
fix: remove unwanted branch
VinneyJ Oct 9, 2024
d464701
chore: add test branch
VinneyJ Oct 9, 2024
73fb227
chore: bump image version
VinneyJ Oct 9, 2024
1237e01
chore: add test branch in prod workflow
VinneyJ Oct 9, 2024
1bd2fe8
chore: bump codeforafrica to 1.0.58
VinneyJ Oct 9, 2024
b5ce7c4
chore: bump charterafrica to 0.1.34
VinneyJ Oct 9, 2024
6ad4a21
chore: bump version in civicsignal, roboshield, vpnmanager
VinneyJ Oct 9, 2024
7db4b44
chore: bump civicsignal blog version
VinneyJ Oct 9, 2024
8e33f4e
Merge branch 'main' into chore/build-arm-image
kilemensi Oct 10, 2024
56b3eec
Merge branch 'main' of github.com:CodeForAfrica/ui into chore/build-a…
VinneyJ Oct 11, 2024
4588fc7
Bump civicsignalblog version: 0.1.15 → 0.1.16
kilemensi Oct 11, 2024
2c49d6f
chore: add multiplatform support on climatemapped
VinneyJ Oct 14, 2024
b082eec
Merge branch 'main' of github.com:CodeForAfrica/ui into chore/build-a…
VinneyJ Oct 14, 2024
708279f
Merge remote-tracking branch 'origin/chore/build-arm-image' into chor…
VinneyJ Oct 14, 2024
ac9459d
Merge remote-tracking branch 'origin/main' into chore/build-arm-image
VinneyJ Oct 17, 2024
05eb125
chore:bump climatemapped to 0.0.4
VinneyJ Oct 17, 2024
eba8739
Merge branch 'main' into chore/build-arm-image
kilemensi Oct 25, 2024
64021f8
Merge branch 'main' into chore/build-arm-image
kilemensi Oct 28, 2024
0093f3a
Merge branch 'main' into chore/build-arm-image
kilemensi Oct 29, 2024
1d4de1f
Merge branch 'main' into chore/build-arm-image
kilemensi Nov 4, 2024
f510ed0
Merge branch 'main' into chore/build-arm-image
koechkevin Nov 8, 2024
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
9 changes: 8 additions & 1 deletion .github/workflows/charterafrica-deploy-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ name: charterAFRICA | Deploy | DEV

on:
push:
branches: [main]
branches:
- main
- chore/build-arm-image
paths:
- "apps/charterafrica/**"
- "Dockerfile"
Expand Down Expand Up @@ -32,6 +34,10 @@ jobs:
with:
fetch-depth: 0

# Add support for more platforms with QEMU (optional)
- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

Expand Down Expand Up @@ -63,6 +69,7 @@ jobs:
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache-new
context: .
platforms: linux/amd64,linux/arm64
push: true
secrets: |
"sentry_auth_token=${{ secrets.SENTRY_AUTH_TOKEN }}"
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/charterafrica-deploy-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ name: charterAFRICA | Deploy | PROD

on:
push:
branches: [main]
branches:
- main
- chore/build-arm-image

# This allows a subsequently queued workflow run to interrupt previous runs
concurrency:
Expand Down Expand Up @@ -92,6 +94,7 @@ jobs:
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache-new
context: .
platforms: linux/amd64,linux/arm64
push: true
secrets: |
"sentry_auth_token=${{ secrets.SENTRY_AUTH_TOKEN }}"
Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/civicsignalblog-deploy-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ name: CivicSignal Blog | Deploy | PROD

on:
push:
branches: [main]
branches:
- main
- chore/build-arm-image

# This allows a subsequently queued workflow run to interrupt previous runs
concurrency:
Expand Down Expand Up @@ -31,6 +33,10 @@ jobs:
with:
fetch-depth: 0

# Add support for more platforms with QEMU (optional)
- name: Set up QEMU
uses: docker/setup-qemu-action@v3

# Set up Node since it's required by version-check
# https://github.com/EndBug/version-check#github-workflow
- name: Setup Node.js
Expand Down Expand Up @@ -84,6 +90,7 @@ jobs:
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache-new
context: .
platforms: linux/amd64,linux/arm64
push: true
secrets: |
"sentry_auth_token=${{ secrets.SENTRY_AUTH_TOKEN }}"
Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/climatemappedafrica-deploy-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ name: Climate Mapped Africa | Deploy | DEV

on:
push:
branches: [main]
branches:
- main
- chore/build-arm-image
paths:
- "apps/climatemappedafrica/**"
- "Dockerfile"
Expand Down Expand Up @@ -33,6 +35,10 @@ jobs:
with:
fetch-depth: 0

# Add support for more platforms with QEMU (optional)
- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

Expand Down Expand Up @@ -61,6 +67,7 @@ jobs:
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache-new
context: .
platforms: linux/amd64,linux/arm64
target: climatemappedafrica-runner
push: true
tags: "${{ env.IMAGE_NAME }}:${{ github.sha }}"
Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/codeforafrica-deploy-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ name: Code for Africa | Deploy | DEV

on:
push:
branches: [main]
branches:
- main
- chore/build-arm-image
paths:
- "apps/codeforafrica/**"
- "Dockerfile"
Expand Down Expand Up @@ -34,6 +36,10 @@ jobs:
with:
fetch-depth: 0

# Add support for more platforms with QEMU (optional)
- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

Expand Down Expand Up @@ -66,6 +72,7 @@ jobs:
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache-new
context: .
platforms: linux/amd64,linux/arm64
push: true
secrets: |
"sentry_auth_token=${{ secrets.SENTRY_AUTH_TOKEN }}"
Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/codeforafrica-deploy-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ name: Code for Africa | Deploy | PROD

on:
push:
branches: [main]
branches:
- main
- chore/build-arm-image

# This allows a subsequently queued workflow run to interrupt previous runs
concurrency:
Expand Down Expand Up @@ -32,6 +34,10 @@ jobs:
with:
fetch-depth: 0

# Add support for more platforms with QEMU (optional)
- name: Set up QEMU
uses: docker/setup-qemu-action@v3

# Set up Node since it's required by version-check
# https://github.com/EndBug/version-check#github-workflow
- name: Setup Node.js
Expand Down Expand Up @@ -87,6 +93,7 @@ jobs:
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache-new
context: .
platforms: linux/amd64,linux/arm64
push: true
secrets: |
"sentry_auth_token=${{ secrets.SENTRY_AUTH_TOKEN }}"
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/pesayetu-deploy-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ jobs:
with:
fetch-depth: 0

# Add support for more platforms with QEMU (optional)
- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

Expand Down Expand Up @@ -68,6 +72,7 @@ jobs:
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache-new
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: "${{ env.IMAGE_NAME }}:${{ github.sha }}"
target: pesayetu-runner
Expand Down
10 changes: 9 additions & 1 deletion .github/workflows/roboshield-deploy-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ name: RoboShield | Deploy | DEV

on:
push:
branches: [main]
branches:
- main
- chore/build-arm-image

paths:
- "apps/roboshield/**"
- "Dockerfile"
Expand Down Expand Up @@ -34,6 +37,10 @@ jobs:
with:
fetch-depth: 0

# Add support for more platforms with QEMU (optional)
- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

Expand Down Expand Up @@ -65,6 +72,7 @@ jobs:
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache-new
context: .
platforms: linux/amd64,linux/arm64
push: true
secrets: |
"sentry_auth_token=${{ secrets.SENTRY_AUTH_TOKEN }}"
Expand Down
10 changes: 9 additions & 1 deletion .github/workflows/roboshield-deploy-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ name: RoboShield | Deploy | PROD

on:
push:
branches: [main]
branches:
- main
- chore/build-arm-image

concurrency:
group: "${{ github.workflow }} @ ${{ github.ref }}"
Expand Down Expand Up @@ -30,6 +32,11 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0

# Add support for more platforms with QEMU (optional)
- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Setup Node.js
uses: actions/setup-node@v4
with:
Expand Down Expand Up @@ -77,6 +84,7 @@ jobs:
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache-new
context: .
platforms: linux/amd64,linux/arm64
push: true
secrets: |
"sentry_auth_token=${{ secrets.SENTRY_AUTH_TOKEN }}"
Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/vpnmanager-deploy-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ name: VPN Manager | Deploy | DEV

on:
push:
branches: [main]
branches:
- main
- chore/build-arm-image
paths:
- "apps/vpnmanager/**"
- "Dockerfile.vpnmanager"
Expand Down Expand Up @@ -31,6 +33,10 @@ jobs:
with:
fetch-depth: 0

# Add support for more platforms with QEMU (optional)
- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

Expand Down Expand Up @@ -60,6 +66,7 @@ jobs:
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache-new
context: .
platforms: linux/amd64,linux/arm64
push: true
secrets: |
"sentry_auth_token=${{ secrets.SENTRY_AUTH_TOKEN }}"
Expand Down
2 changes: 1 addition & 1 deletion apps/charterafrica/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "charterafrica",
"version": "0.1.33",
"version": "0.1.34",
"private": true,
"author": "Code for Africa <[email protected]>",
"description": "This is the official code for https://charter.africa site",
Expand Down
2 changes: 1 addition & 1 deletion apps/civicsignalblog/contrib/dokku/Dockerfile
Original file line number Diff line number Diff line change
@@ -1 +1 @@
FROM codeforafrica/codeforafrica-ui:0.1.13
FROM codeforafrica/codeforafrica-ui:0.1.16
2 changes: 1 addition & 1 deletion apps/civicsignalblog/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "civicsignalblog",
"version": "0.1.13",
"version": "0.1.16",
"private": true,
"author": "Code for Africa <[email protected]>",
"description": "This is the (temporary) CivicSignal blog",
Expand Down
2 changes: 1 addition & 1 deletion apps/climatemappedafrica/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "climatemappedafrica",
"version": "0.0.3",
"version": "0.0.4",
"private": true,
"author": "Code for Africa <[email protected]>",
"description": "ClimateMapped Africa",
Expand Down
2 changes: 1 addition & 1 deletion apps/codeforafrica/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "codeforafrica",
"version": "1.0.56",
"version": "1.0.58",
"private": true,
"author": "Code for Africa <[email protected]>",
"description": "This is the main CFA site.",
Expand Down
2 changes: 1 addition & 1 deletion apps/roboshield/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "roboshield",
"version": "0.1.13",
"version": "0.1.14",
"private": true,
"scripts": {
"build-server": "tsc --project tsconfig.server.json",
Expand Down
2 changes: 1 addition & 1 deletion apps/vpnmanager/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vpnmanager",
"version": "0.1.0",
"version": "0.1.1",
"private": true,
"scripts": {
"dev": "next dev",
Expand Down
Loading