mirror of
https://github.com/antos-rde/antos.git
synced 2025-07-13 14:14:29 +02:00
Compare commits
7 Commits
69f7995c02
...
2.1.1
Author | SHA1 | Date | |
---|---|---|---|
736141a4be | |||
0a2b701037 | |||
274f959ae2 | |||
76dc81a8a4 | |||
c738ebf998 | |||
6c3ab28d88 | |||
6e24cd89f2 |
@ -22,6 +22,8 @@ jobs:
|
||||
RUSTUP_HOME=/opt/rust/rustup \
|
||||
CARGO_HOME=/opt/rust/cargo \
|
||||
make all deb appimg
|
||||
- name: Checking binaries
|
||||
run: ./scripts/ckarch.sh build
|
||||
- name: Save artifact
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
|
@ -17,7 +17,27 @@ jobs:
|
||||
with:
|
||||
platform: arm
|
||||
|
||||
publish-on-tag:
|
||||
publish-doc-on-tag:
|
||||
runs-on: act-runner
|
||||
if: gitea.event_name == 'push' && contains(gitea.ref, 'refs/tags/')
|
||||
needs:
|
||||
container:
|
||||
image: iohubdev/ci-tools:latest
|
||||
volumes:
|
||||
- /opt/public/antos-release/:/public/
|
||||
steps:
|
||||
- name: Check out repository code
|
||||
uses: actions/checkout@v4
|
||||
- name: Update submodule
|
||||
run: git submodule update --init
|
||||
- run: mkdir -p build
|
||||
- name: Build and publish doc and SDK
|
||||
run: |
|
||||
make frontend
|
||||
DOCDIR=/public/doc/ make doc
|
||||
SDKDIR=/public/sdk/ make sdk
|
||||
|
||||
publish-package-on-tag:
|
||||
runs-on: act-runner
|
||||
if: gitea.event_name == 'push' && contains(gitea.ref, 'refs/tags/')
|
||||
needs: [build-amd64, build-arm64, build-arm]
|
||||
@ -67,6 +87,7 @@ jobs:
|
||||
files=$(find ./build -type f)
|
||||
PKG_VERSION="${{ gitea.ref_name }}"
|
||||
URL="https://git.iohub.dev/api/packages/dany/generic/antos/$PKG_VERSION"
|
||||
curl --request "DELETE" --header "Authorization: token ${{ secrets.GT_API_PAT }}" $URL/ || true
|
||||
for file in $files; do
|
||||
curl --header "Authorization: token ${{ secrets.GT_API_PAT }}" -v --upload-file $file $URL/$(basename $file)
|
||||
done
|
||||
curl --header "Authorization: token ${{ secrets.GT_API_PAT }}" --upload-file $file $URL/$(basename $file)
|
||||
done
|
||||
|
4
Makefile
4
Makefile
@ -5,7 +5,7 @@ DOCKER_TAG?=$(subst master,stable,$(subst refs/heads/,,$(shell git symbolic-ref
|
||||
DOCKER_IMAGE?=iohubdev/antos
|
||||
|
||||
ARCH?=amd64
|
||||
VERSION?=2.1.0-b
|
||||
VERSION?=2.1.1-b
|
||||
|
||||
RUSTUP_HOME?=/opt/rust
|
||||
CARGO_HOME?=/opt/rust/cargo
|
||||
@ -202,4 +202,4 @@ sdk:
|
||||
done
|
||||
|
||||
# --push
|
||||
.PHONY: antd antos docker
|
||||
.PHONY: antd antos docker
|
||||
|
@ -65,6 +65,7 @@ COPY --from=deploy-env /platform/opt/ /opt/
|
||||
|
||||
COPY docker/antos/start.sh /start.sh
|
||||
RUN chmod 700 /start.sh
|
||||
RUN chmod +x /opt/www/bin/*
|
||||
|
||||
ENV LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/opt/www/lib/"
|
||||
ENV PATH="$PATH:/opt/www/bin/"
|
||||
|
Reference in New Issue
Block a user