Skip to content

Commit

Permalink
Merge pull request #30 from keynslug/fix/release-build
Browse files Browse the repository at this point in the history
ci: revert to manually run container builds
  • Loading branch information
keynslug authored Mar 4, 2024
2 parents f396182 + cce745b commit 678ce14
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ jobs:
- alpine3.15.1

runs-on: "aws-${{ matrix.arch }}"
container: ghcr.io/emqx/emqx-builder/${{ matrix.builder }}-${{ matrix.os }}

steps:
- uses: actions/checkout@v3
Expand All @@ -104,10 +103,16 @@ jobs:
submodules: recursive
- name: gitconfig
run: git config --global --add safe.directory ${PWD}
# NOTE: we tried to use build in container, it did not work
# so let's stick to the old way for now
- name: build
env:
BUILD_RELEASE: 1
run: make
IMAGE: ghcr.io/emqx/emqx-builder/${{ matrix.builder }}-${{ matrix.os }}
run: >-
docker run --rm -v ${PWD}:/wd ${IMAGE} bash -euc "
git config --global --add safe.directory '*';
make -C /wd BUILD_RELEASE=1
"
- uses: actions/upload-artifact@v3
if: startsWith(github.ref, 'refs/tags/')
Expand Down

0 comments on commit 678ce14

Please sign in to comment.