Skip to content
This repository has been archived by the owner on Jul 8, 2024. It is now read-only.

Commit

Permalink
feat: try to build with arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
tale committed Mar 24, 2024
1 parent 4199f33 commit 3b85fdc
Showing 1 changed file with 10 additions and 13 deletions.
23 changes: 10 additions & 13 deletions .github/workflows/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ on:
jobs:
build:
name: Build
runs-on: ubuntu-latest
runs-on: self-hosted
steps:
- name: Checkout Repository
uses: actions/checkout@v3
Expand All @@ -40,21 +40,18 @@ jobs:
- name: Configure Rust and Cargo
uses: dtolnay/rust-toolchain@stable

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

- name: Configure Docker
uses: docker/setup-buildx-action@v2
with:
version: latest
platforms: linux/amd64

- name: Login to tale.me
- name: Login to iad.ocir.io
uses: docker/login-action@v2
with:
registry: us-east4-docker.pkg.dev
username: _json_key_base64
password: ${{ secrets.SERVICE_ACCOUNT }}
registry: iad.ocir.io
username: ${{ secrets.OCIR_USER }}
password: ${{ secrets.OCIR_TOKEN }}

- name: Load manifest.yaml for API
run: echo "$MANIFEST_BASE64" | base64 -d > manifest.yaml
Expand All @@ -71,15 +68,15 @@ jobs:
env:
BUMP_TYPE: ${{ inputs.bump_type }}

- name: Build us-east4-docker.pkg.dev/aarnavtale/canister/api
- name: Build iad.ocir.io/idydjmpmhphx/tale/cnstr-api:${{ env.git_version }}
uses: docker/build-push-action@v4
with:
context: .
push: true
tags: us-east4-docker.pkg.dev/aarnavtale/canister/api:${{ env.git_version }}
tags: iad.ocir.io/idydjmpmhphx/tale/cnstr-api:${{ env.git_version }}
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache-to,mode=max
platforms: linux/amd64
platforms: linux/arm64
build-args: |
BUILD_DATE=${{ env.build_date }}
VERSION=${{ env.git_version }}
Expand Down Expand Up @@ -117,8 +114,8 @@ jobs:
- name: Configure Kubernetes
uses: tale/kubectl-action@v1
with:
base64-kube-config: ${{ secrets.KUBE_CONFIG }}
kubectl-version: v1.26.0
base64-kube-config: ${{ secrets.OCI_KUBE_CONFIG }}
kubectl-version: v1.28.2

- name: Configure Rust and Cargo
uses: dtolnay/rust-toolchain@stable
Expand Down

0 comments on commit 3b85fdc

Please sign in to comment.