diff --git a/.github/workflows/build-soci.yaml b/.github/workflows/build-soci.yaml index 682e9a6b4..a9477bcdd 100644 --- a/.github/workflows/build-soci.yaml +++ b/.github/workflows/build-soci.yaml @@ -76,17 +76,18 @@ jobs: file: ./Dockerfile # Path to your Dockerfile push: false tags: ${{ steps.meta.outputs.tags }} - outputs: type=oci,dest=/tmp/lorax-${{ steps.meta.outputs.tags }}.tar + outputs: type=oci,dest=/tmp/lorax-${{ steps.meta.outputs.version }}.tar - name: Import image in containerd run: | - sudo ctr i import --base-name ghcr.io/predibase/lorax --digests --all-platforms /tmp/lorax-${{ steps.meta.outputs.tags }}.tar + sudo ctr i import --base-name ${{ steps.meta.outputs.tags }} --digests /tmp/lorax-${{ steps.meta.outputs.version }}.tar + rm -rf /tmp/lorax-${{ steps.meta.outputs.version }}.tar - name: Push image with containerd run: | - sudo ctr i push --user "${{ github.repository_owner }}:${{ secrets.GHCR_PAT }}" ghcr.io/predibase/lorax:${{ steps.meta.outputs.tags }} + sudo ctr i push --user "${{ github.repository_owner }}:${{ secrets.GHCR_PAT }}" ${{ steps.meta.outputs.tags }} - name: Create and push soci index run: | - sudo soci create ghcr.io/predibase/lorax:${{ steps.meta.outputs.tags }} - sudo soci push --user ${{ github.repository_owner }}:${{ secrets.GHCR_PAT }} ghcr.io/predibase/lorax:${{ steps.meta.outputs.tags }} + sudo soci create ${{ steps.meta.outputs.tags }} + sudo soci push --user ${{ github.repository_owner }}:${{ secrets.GHCR_PAT }} ${{ steps.meta.outputs.tags }} diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 894313622..6fc272f73 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -7,11 +7,6 @@ on: - 'main' tags: - 'v*' - pull_request: - types: [opened, synchronize, reopened] - branches: [ main ] - paths: - - '.github/workflows/build.yaml' jobs: build-and-push-image: @@ -83,17 +78,18 @@ jobs: file: ./Dockerfile # Path to your Dockerfile push: false tags: ${{ steps.meta.outputs.tags }} - outputs: type=oci,dest=/tmp/lorax-${{ steps.meta.outputs.tags }}.tar - + outputs: type=oci,dest=/tmp/lorax-${{ steps.meta.outputs.version }}.tar + - name: Import image in containerd run: | - sudo ctr i import --base-name ghcr.io/predibase/lorax --digests --all-platforms /tmp/lorax-${{ steps.meta.outputs.tags }}.tar + sudo ctr i import --base-name ${{ steps.meta.outputs.tags }} --digests /tmp/lorax-${{ steps.meta.outputs.version }}.tar + rm -rf /tmp/lorax-${{ steps.meta.outputs.version }}.tar - name: Push image with containerd run: | - sudo ctr i push --user "${{ github.repository_owner }}:${{ secrets.GHCR_PAT }}" ghcr.io/predibase/lorax:${{ steps.meta.outputs.tags }} + sudo ctr i push --user "${{ github.repository_owner }}:${{ secrets.GHCR_PAT }}" ${{ steps.meta.outputs.tags }} - name: Create and push soci index run: | - sudo soci create ghcr.io/predibase/lorax:${{ steps.meta.outputs.tags }} - sudo soci push --user ${{ github.repository_owner }}:${{ secrets.GHCR_PAT }} ghcr.io/predibase/lorax:${{ steps.meta.outputs.tags }} + sudo soci create ${{ steps.meta.outputs.tags }} + sudo soci push --user ${{ github.repository_owner }}:${{ secrets.GHCR_PAT }} ${{ steps.meta.outputs.tags }}