Skip to content

Commit

Permalink
testing multiplatform kickable builds
Browse files Browse the repository at this point in the history
  • Loading branch information
defstream committed Jan 23, 2023
1 parent fa85847 commit a608fbb
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 138 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,18 @@ jobs:
fi
git checkout -b "$branch" || true
- name: setup ci
run: sudo ./scripts/ci-setup.sh

- name: select satellite
run: earthly sat select venus

- name: setup qemu
uses: docker/setup-qemu-action@v2

- name: setup docker buildx
uses: docker/setup-buildx-action@v2

- name: setup ci
run: sudo ./scripts/ci-setup.sh

- name: select satellite
run: earthly sat select venus

- name: docker login
run: docker login --username kickable --password "${{ secrets.DOCKER_HUB }}"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ on:
tags:
- 'v*'

name: dockerhub release - arm64
name: ghcr.io release - amd64

jobs:
build:
name: kickable - dockerhub release - arm64
name: kickable - ghcr.io release - amd64
runs-on: ubuntu-latest
env:
FORCE_COLOR: 1
Expand All @@ -25,40 +25,41 @@ jobs:
fi
git checkout -b "$branch" || true
- name: setup ci
run: sudo ./scripts/ci-setup.sh

- name: select satellite
run: earthly sat select moon

- name: setup qemu
uses: docker/setup-qemu-action@v2

- name: setup docker buildx
uses: docker/setup-buildx-action@v2

- name: setup ci
run: sudo ./scripts/ci-setup.sh

- name: select satellite
run: earthly sat select mars

- name: docker login
run: docker login --username kickable --password "${{ secrets.DOCKER_HUB }}"
run: docker login ghcr.io --username ${{ github.repository_owner }} --password "${{ secrets.GITHUB_TOKEN }}"

- name: set version
run: |
VERSION=${GITHUB_REF_NAME#v}
echo "VERSION=$VERSION" >> $GITHUB_ENV
- name: build and push dockerhub app
run: earthly --use-inline-cache --push +kickable --VERSION="$VERSION" --REPOSITORY="kickable"
- name: build and push docker app
run: |
earthly --use-inline-cache --push +kickable --VERSION="$VERSION" --REPOSITORY="ghcr.io/${{ github.repository }}"
- name: build dockerhub services
- name: build docker services
run: |
earthly --use-inline-cache --push +axum --VERSION="$VERSION" --REPOSITORY="kickable"
earthly --use-inline-cache --push +gotham --VERSION="$VERSION" --REPOSITORY="kickable"
earthly --use-inline-cache --push +graphul --VERSION="$VERSION" --REPOSITORY="kickable"
earthly --use-inline-cache --push +poem --VERSION="$VERSION" --REPOSITORY="kickable"
earthly --use-inline-cache --push +rocket --VERSION="$VERSION" --REPOSITORY="kickable"
earthly --use-inline-cache --push +rouille --VERSION="$VERSION" --REPOSITORY="kickable"
earthly --use-inline-cache --push +salvo --VERSION="$VERSION" --REPOSITORY="kickable"
earthly --use-inline-cache --push +tonic-client --VERSION="$VERSION" --REPOSITORY="kickable"
earthly --use-inline-cache --push +tonic-server --VERSION="$VERSION" --REPOSITORY="kickable"
earthly --use-inline-cache --push +trillium --VERSION="$VERSION" --REPOSITORY="kickable"
earthly --use-inline-cache --push +viz --VERSION="$VERSION" --REPOSITORY="kickable"
earthly --use-inline-cache --push +warp --VERSION="$VERSION" --REPOSITORY="kickable"
earthly --use-inline-cache --push +axum --VERSION="$VERSION" --REPOSITORY="ghcr.io/${{ github.repository }}"
earthly --use-inline-cache --push +gotham --VERSION="$VERSION" --REPOSITORY="ghcr.io/${{ github.repository }}"
earthly --use-inline-cache --push +graphul --VERSION="$VERSION" --REPOSITORY="ghcr.io/${{ github.repository }}"
earthly --use-inline-cache --push +poem --VERSION="$VERSION" --REPOSITORY="ghcr.io/${{ github.repository }}"
earthly --use-inline-cache --push +rocket --VERSION="$VERSION" --REPOSITORY="ghcr.io/${{ github.repository }}"
earthly --use-inline-cache --push +rouille --VERSION="$VERSION" --REPOSITORY="ghcr.io/${{ github.repository }}"
earthly --use-inline-cache --push +salvo --VERSION="$VERSION" --REPOSITORY="ghcr.io/${{ github.repository }}"
earthly --use-inline-cache --push +tonic-client --VERSION="$VERSION" --REPOSITORY="ghcr.io/${{ github.repository }}"
earthly --use-inline-cache --push +tonic-server --VERSION="$VERSION" --REPOSITORY="ghcr.io/${{ github.repository }}"
earthly --use-inline-cache --push +trillium --VERSION="$VERSION" --REPOSITORY="ghcr.io/${{ github.repository }}"
earthly --use-inline-cache --push +viz --VERSION="$VERSION" --REPOSITORY="ghcr.io/${{ github.repository }}"
earthly --use-inline-cache --push +warp --VERSION="$VERSION" --REPOSITORY="ghcr.io/${{ github.repository }}"
54 changes: 0 additions & 54 deletions .github/workflows/release_ghcr_amd64.yml

This file was deleted.

54 changes: 0 additions & 54 deletions .github/workflows/release_ghcr_arm64.yml

This file was deleted.

0 comments on commit a608fbb

Please sign in to comment.