Skip to content

Commit

Permalink
fix: set ghcr.io urls to zk-org (#470)
Browse files Browse the repository at this point in the history
  • Loading branch information
tjex authored Nov 28, 2024
1 parent 0d54913 commit 5b72ff1
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/build-binaries.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build Binaries
/ame: Build Binaries
on:
workflow_dispatch:
workflow_call:
Expand All @@ -19,14 +19,14 @@ jobs:
id: vars
run: echo "version=$(git describe --tags --match v[0-9]* 2> /dev/null)" >> $GITHUB_OUTPUT
- name: Pull docker image
run: docker pull ghcr.io/${{ github.actor }}/zk-xcompile:${{ matrix.tag }}
run: docker pull ghcr.io/zk-org/zk-xcompile:${{ matrix.tag }}
- name: Build
run: |
docker run --rm \
-v $(pwd):/usr/src/zk \
-w /usr/src/zk \
-u root \
ghcr.io/${{ github.actor }}/zk-xcompile:${{ matrix.tag }} \
ghcr.io/zk-org/zk-xcompile:${{ matrix.tag }} \
/bin/bash -c 'go build -buildvcs=false -tags "fts5" -ldflags "-X=main.Version=${{ steps.vars.outputs.version }} -X=main.Build=${{ steps.vars.outputs.version }}"'
- name: upload artifact
uses: actions/upload-artifact@v4
Expand All @@ -45,7 +45,7 @@ jobs:
id: vars
run: echo "version=$(git describe --tags --match v[0-9]* 2> /dev/null)" >> $GITHUB_OUTPUT
- name: Pull docker image
run: docker pull ghcr.io/${{ github.actor }}/zk-xcompile:linux-arm64
run: docker pull ghcr.io/zk-org/zk-xcompile:linux-arm64
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
Expand All @@ -57,7 +57,7 @@ jobs:
-w /usr/src/zk \
--platform=linux/arm64 \
-u root \
ghcr.io/${{ github.actor }}/zk-xcompile:linux-arm64 \
ghcr.io/zk-org/zk-xcompile:linux-arm64 \
/bin/bash -c 'go build -buildvcs=false -tags "fts5" -ldflags "-X=main.Version=${{ steps.vars.outputs.version }} -X=main.Build=${{ steps.vars.outputs.version }}"'
- name: upload artifact
uses: actions/upload-artifact@v4
Expand All @@ -79,14 +79,14 @@ jobs:
id: vars
run: echo "version=$(git describe --tags --match v[0-9]* 2> /dev/null)" >> $GITHUB_OUTPUT
- name: Pull docker image
run: docker pull ghcr.io/${{ github.actor }}/zk-xcompile:${{ matrix.tag }}
run: docker pull ghcr.io/zk-org/zk-xcompile:${{ matrix.tag }}
- name: build
run: |
docker run --rm \
-v $(pwd):/usr/src/zk \
-w /usr/src/zk \
-u root \
ghcr.io/${{ github.actor }}/zk-xcompile:${{ matrix.tag }} \
ghcr.io/zk-org/zk-xcompile:${{ matrix.tag }} \
/bin/bash -c 'go build -buildvcs=false -tags "fts5" -ldflags "-extldflags=-static -X=main.Version=${{ steps.vars.outputs.version }} -X=main.Build=${{ steps.vars.outputs.version }}"'
- name: upload artifact
uses: actions/upload-artifact@v4
Expand All @@ -105,7 +105,7 @@ jobs:
id: vars
run: echo "version=$(git describe --tags --match v[0-9]* 2> /dev/null)" >> $GITHUB_OUTPUT
- name: Pull dockedr image
run: docker pull ghcr.io/${{ github.actor }}/zk-xcompile:alpine-arm64
run: docker pull ghcr.io/zk-org/zk-xcompile:alpine-arm64
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
Expand All @@ -117,7 +117,7 @@ jobs:
-w /usr/src/zk \
--platform=linux/arm64 \
-u root \
ghcr.io/${{ github.actor }}/zk-xcompile:alpine-arm64 \
ghcr.io/zk-org/zk-xcompile:alpine-arm64 \
/bin/bash -c 'go build -buildvcs=false -tags "fts5" -ldflags "-extldflags=-static -X=main.Version=${{ steps.vars.outputs.version }} -X=main.Build=${{ steps.vars.outputs.version }}"'
- name: upload artifact
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit 5b72ff1

Please sign in to comment.