From a608fbbfe49042f35534db49f56923f5e4d36d3c Mon Sep 17 00:00:00 2001 From: "@DEFSTREAM" Date: Sun, 22 Jan 2023 16:08:21 -0800 Subject: [PATCH] testing multiplatform kickable builds --- ...r_hub_amd64.yml => release_docker_hub.yml} | 12 ++--- ..._docker_hub_arm64.yml => release_ghcr.yml} | 49 ++++++++--------- .github/workflows/release_ghcr_amd64.yml | 54 ------------------- .github/workflows/release_ghcr_arm64.yml | 54 ------------------- 4 files changed, 31 insertions(+), 138 deletions(-) rename .github/workflows/{release_docker_hub_amd64.yml => release_docker_hub.yml} (100%) rename .github/workflows/{release_docker_hub_arm64.yml => release_ghcr.yml} (59%) delete mode 100644 .github/workflows/release_ghcr_amd64.yml delete mode 100644 .github/workflows/release_ghcr_arm64.yml diff --git a/.github/workflows/release_docker_hub_amd64.yml b/.github/workflows/release_docker_hub.yml similarity index 100% rename from .github/workflows/release_docker_hub_amd64.yml rename to .github/workflows/release_docker_hub.yml index 8762ae6..53eb2be 100644 --- a/.github/workflows/release_docker_hub_amd64.yml +++ b/.github/workflows/release_docker_hub.yml @@ -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 }}" diff --git a/.github/workflows/release_docker_hub_arm64.yml b/.github/workflows/release_ghcr.yml similarity index 59% rename from .github/workflows/release_docker_hub_arm64.yml rename to .github/workflows/release_ghcr.yml index 6b14925..9f7b3dd 100644 --- a/.github/workflows/release_docker_hub_arm64.yml +++ b/.github/workflows/release_ghcr.yml @@ -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 @@ -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" \ No newline at end of file + 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 }}" diff --git a/.github/workflows/release_ghcr_amd64.yml b/.github/workflows/release_ghcr_amd64.yml deleted file mode 100644 index da32de8..0000000 --- a/.github/workflows/release_ghcr_amd64.yml +++ /dev/null @@ -1,54 +0,0 @@ -on: - push: - tags: - - 'v*' - -name: ghcr.io release - amd64 - -jobs: - build: - name: kickable - ghcr.io release - amd64 - runs-on: ubuntu-latest - env: - FORCE_COLOR: 1 - EARTHLY_TOKEN: ${{ secrets.EARTHLY_TOKEN }} - steps: - - uses: actions/checkout@v3 - - - name: update git branch - run: | - branch="" - if [ -n "$GITHUB_HEAD_REF" ]; then - branch="$GITHUB_HEAD_REF" - else - branch="${GITHUB_REF##*/}" - fi - git checkout -b "$branch" || true - - - name: setup ci - run: sudo ./scripts/ci-setup.sh - - - name: select satellite - run: earthly sat select mars - - - name: docker login - run: docker login ghcr.io --username ${{ github.repository_owner }} --password "${{ secrets.GITHUB_TOKEN }}" - - - name: build and push docker app - run: | - earthly --use-inline-cache --push +kickable --VERSION="${{ github.ref_name }}" --REPOSITORY="ghcr.io/${{ github.repository }}" - - - name: build docker services - run: | - earthly --use-inline-cache --push +axum --VERSION="${{ github.ref_name }}" --REPOSITORY="ghcr.io/${{ github.repository }}" - earthly --use-inline-cache --push +gotham --VERSION="${{ github.ref_name }}" --REPOSITORY="ghcr.io/${{ github.repository }}" - earthly --use-inline-cache --push +graphul --VERSION="${{ github.ref_name }}" --REPOSITORY="ghcr.io/${{ github.repository }}" - earthly --use-inline-cache --push +poem --VERSION="${{ github.ref_name }}" --REPOSITORY="ghcr.io/${{ github.repository }}" - earthly --use-inline-cache --push +rocket --VERSION="${{ github.ref_name }}" --REPOSITORY="ghcr.io/${{ github.repository }}" - earthly --use-inline-cache --push +rouille --VERSION="${{ github.ref_name }}" --REPOSITORY="ghcr.io/${{ github.repository }}" - earthly --use-inline-cache --push +salvo --VERSION="${{ github.ref_name }}" --REPOSITORY="ghcr.io/${{ github.repository }}" - earthly --use-inline-cache --push +tonic-client --VERSION="${{ github.ref_name }}" --REPOSITORY="ghcr.io/${{ github.repository }}" - earthly --use-inline-cache --push +tonic-server --VERSION="${{ github.ref_name }}" --REPOSITORY="ghcr.io/${{ github.repository }}" - earthly --use-inline-cache --push +trillium --VERSION="${{ github.ref_name }}" --REPOSITORY="ghcr.io/${{ github.repository }}" - earthly --use-inline-cache --push +viz --VERSION="${{ github.ref_name }}" --REPOSITORY="ghcr.io/${{ github.repository }}" - earthly --use-inline-cache --push +warp --VERSION="${{ github.ref_name }}" --REPOSITORY="ghcr.io/${{ github.repository }}" diff --git a/.github/workflows/release_ghcr_arm64.yml b/.github/workflows/release_ghcr_arm64.yml deleted file mode 100644 index a280d71..0000000 --- a/.github/workflows/release_ghcr_arm64.yml +++ /dev/null @@ -1,54 +0,0 @@ -on: - push: - tags: - - 'v*' - -name: ghcr.io release - arm64 - -jobs: - build: - name: kickable - ghcr.io release - arm64 - runs-on: ubuntu-latest - env: - FORCE_COLOR: 1 - EARTHLY_TOKEN: ${{ secrets.EARTHLY_TOKEN }} - steps: - - uses: actions/checkout@v3 - - - name: update git branch - run: | - branch="" - if [ -n "$GITHUB_HEAD_REF" ]; then - branch="$GITHUB_HEAD_REF" - else - branch="${GITHUB_REF##*/}" - fi - git checkout -b "$branch" || true - - - name: setup ci - run: sudo ./scripts/ci-setup.sh - - - name: select satellite - run: earthly sat select mercury - - - name: docker login - run: docker login ghcr.io --username ${{ github.repository_owner }} --password "${{ secrets.GITHUB_TOKEN }}" - - - name: build and push docker app - run: | - earthly --use-inline-cache --push +kickable --VERSION="${{ github.ref_name }}" --REPOSITORY="ghcr.io/${{ github.repository }}" - - - name: build docker services - run: | - earthly --use-inline-cache --push +axum --VERSION="${{ github.ref_name }}" --REPOSITORY="ghcr.io/${{ github.repository }}" - earthly --use-inline-cache --push +gotham --VERSION="${{ github.ref_name }}" --REPOSITORY="ghcr.io/${{ github.repository }}" - earthly --use-inline-cache --push +graphul --VERSION="${{ github.ref_name }}" --REPOSITORY="ghcr.io/${{ github.repository }}" - earthly --use-inline-cache --push +poem --VERSION="${{ github.ref_name }}" --REPOSITORY="ghcr.io/${{ github.repository }}" - earthly --use-inline-cache --push +rocket --VERSION="${{ github.ref_name }}" --REPOSITORY="ghcr.io/${{ github.repository }}" - earthly --use-inline-cache --push +rouille --VERSION="${{ github.ref_name }}" --REPOSITORY="ghcr.io/${{ github.repository }}" - earthly --use-inline-cache --push +salvo --VERSION="${{ github.ref_name }}" --REPOSITORY="ghcr.io/${{ github.repository }}" - earthly --use-inline-cache --push +tonic-client --VERSION="${{ github.ref_name }}" --REPOSITORY="ghcr.io/${{ github.repository }}" - earthly --use-inline-cache --push +tonic-server --VERSION="${{ github.ref_name }}" --REPOSITORY="ghcr.io/${{ github.repository }}" - earthly --use-inline-cache --push +trillium --VERSION="${{ github.ref_name }}" --REPOSITORY="ghcr.io/${{ github.repository }}" - earthly --use-inline-cache --push +viz --VERSION="${{ github.ref_name }}" --REPOSITORY="ghcr.io/${{ github.repository }}" - earthly --use-inline-cache --push +warp --VERSION="${{ github.ref_name }}" --REPOSITORY="ghcr.io/${{ github.repository }}"