From ce3441c704fde3be2acbece8457d07d71a1b10f7 Mon Sep 17 00:00:00 2001 From: steebchen Date: Wed, 18 Sep 2024 13:21:31 -0400 Subject: [PATCH] temp --- .github/workflows/preview.yml | 162 +++++++++++++++++----------------- 1 file changed, 81 insertions(+), 81 deletions(-) diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml index 9c2d60dbe1..254f1f5ee6 100644 --- a/.github/workflows/preview.yml +++ b/.github/workflows/preview.yml @@ -12,90 +12,90 @@ env: REGISTRY_IMAGE: ghcr.io/${{ github.repository }} jobs: - build: - name: Build - runs-on: ubuntu-latest-4-cores - - steps: - - uses: actions/checkout@v4 - - - uses: Swatinem/rust-cache@v1 - - - uses: arduino/setup-protoc@v2 - with: - repo-token: ${{ secrets.GITHUB_TOKEN }} - version: "25.x" - - - name: Build binaries - run: | - cargo build -r --bin katana - cargo build -r --bin torii - cargo build -r --bin sozo - - - name: Archive binaries - id: artifacts - env: - VERSION_NAME: v${{ needs.prepare.outputs.tag_name }} - run: | - tar -czvf "dojo_${VERSION_NAME}_linux_amd64.tar.gz" -C ./target/release katana torii sozo - echo "file_name=dojo_${VERSION_NAME}_linux_amd64.tar.gz" >> $GITHUB_OUTPUT - shell: bash - - - name: Move Binaries - run: | - mkdir -p artifacts/linux/amd64/ - mv target/release/katana artifacts/linux/amd64/ - mv target/release/torii artifacts/linux/amd64/ - mv target/release/sozo artifacts/linux/amd64/ - shell: bash - - # Upload these for use with the Docker build later - - name: Upload docker binaries - uses: actions/upload-artifact@v3 - with: - name: binaries - path: artifacts - retention-days: 1 - - docker-build-and-push: - runs-on: ubuntu-latest - needs: [build] - - steps: - - name: Checkout repository - uses: actions/checkout@v2 - - - name: Download binaries - uses: actions/download-artifact@v3 - with: - name: binaries - path: artifacts - - - name: TEMP LS - run: ls -R artifacts - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 - - - name: Login to GitHub Container Registry - uses: docker/login-action@v1 - with: - registry: ghcr.io - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} - - - name: Build and push docker image - uses: docker/build-push-action@v3 - with: - push: true - tags: ghcr.io/${{ github.repository }}:preview--${{ github.ref_name }} - platforms: linux/amd64 - build-contexts: | - artifacts=artifacts +# build: +# name: Build +# runs-on: ubuntu-latest-4-cores + +# steps: +# - uses: actions/checkout@v4 + +# - uses: Swatinem/rust-cache@v1 + +# - uses: arduino/setup-protoc@v2 +# with: +# repo-token: ${{ secrets.GITHUB_TOKEN }} +# version: "25.x" + +# - name: Build binaries +# run: | +# cargo build -r --bin katana +# cargo build -r --bin torii +# cargo build -r --bin sozo + +# - name: Archive binaries +# id: artifacts +# env: +# VERSION_NAME: v${{ needs.prepare.outputs.tag_name }} +# run: | +# tar -czvf "dojo_${VERSION_NAME}_linux_amd64.tar.gz" -C ./target/release katana torii sozo +# echo "file_name=dojo_${VERSION_NAME}_linux_amd64.tar.gz" >> $GITHUB_OUTPUT +# shell: bash + +# - name: Move Binaries +# run: | +# mkdir -p artifacts/linux/amd64/ +# mv target/release/katana artifacts/linux/amd64/ +# mv target/release/torii artifacts/linux/amd64/ +# mv target/release/sozo artifacts/linux/amd64/ +# shell: bash + +# # Upload these for use with the Docker build later +# - name: Upload docker binaries +# uses: actions/upload-artifact@v3 +# with: +# name: binaries +# path: artifacts +# retention-days: 1 + +# docker-build-and-push: +# runs-on: ubuntu-latest +# needs: [build] + +# steps: +# - name: Checkout repository +# uses: actions/checkout@v2 + +# - name: Download binaries +# uses: actions/download-artifact@v3 +# with: +# name: binaries +# path: artifacts + +# - name: TEMP LS +# run: ls -R artifacts + +# - name: Set up Docker Buildx +# uses: docker/setup-buildx-action@v1 + +# - name: Login to GitHub Container Registry +# uses: docker/login-action@v1 +# with: +# registry: ghcr.io +# username: ${{ github.actor }} +# password: ${{ secrets.GITHUB_TOKEN }} + +# - name: Build and push docker image +# uses: docker/build-push-action@v3 +# with: +# push: true +# tags: ghcr.io/${{ github.repository }}:preview--${{ github.ref_name }} +# platforms: linux/amd64 +# build-contexts: | +# artifacts=artifacts deploy: runs-on: ubuntu-latest - needs: [docker-build-and-push] +# needs: [docker-build-and-push] steps: - name: Checkout repository uses: actions/checkout@v4