mirror of
https://github.com/antos-rde/antos.git
synced 2025-07-15 21:39:54 +02:00
Compare commits
10 Commits
bb3105ddfa
...
2.1.1
Author | SHA1 | Date | |
---|---|---|---|
736141a4be | |||
0a2b701037 | |||
274f959ae2 | |||
76dc81a8a4 | |||
c738ebf998 | |||
6c3ab28d88 | |||
6e24cd89f2 | |||
69f7995c02 | |||
4dd34b5e79 | |||
74bd054321 |
@ -22,6 +22,8 @@ jobs:
|
|||||||
RUSTUP_HOME=/opt/rust/rustup \
|
RUSTUP_HOME=/opt/rust/rustup \
|
||||||
CARGO_HOME=/opt/rust/cargo \
|
CARGO_HOME=/opt/rust/cargo \
|
||||||
make all deb appimg
|
make all deb appimg
|
||||||
|
- name: Checking binaries
|
||||||
|
run: ./scripts/ckarch.sh build
|
||||||
- name: Save artifact
|
- name: Save artifact
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
|
@ -17,7 +17,27 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
platform: arm
|
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
|
runs-on: act-runner
|
||||||
if: gitea.event_name == 'push' && contains(gitea.ref, 'refs/tags/')
|
if: gitea.event_name == 'push' && contains(gitea.ref, 'refs/tags/')
|
||||||
needs: [build-amd64, build-arm64, build-arm]
|
needs: [build-amd64, build-arm64, build-arm]
|
||||||
@ -67,6 +87,7 @@ jobs:
|
|||||||
files=$(find ./build -type f)
|
files=$(find ./build -type f)
|
||||||
PKG_VERSION="${{ gitea.ref_name }}"
|
PKG_VERSION="${{ gitea.ref_name }}"
|
||||||
URL="https://git.iohub.dev/api/packages/dany/generic/antos/$PKG_VERSION"
|
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
|
for file in $files; do
|
||||||
curl --header "Authorization: token ${{ secrets.GT_API_PAT }}" -v --upload-file $file $URL/$(basename $file)
|
curl --header "Authorization: token ${{ secrets.GT_API_PAT }}" --upload-file $file $URL/$(basename $file)
|
||||||
done
|
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
|
DOCKER_IMAGE?=iohubdev/antos
|
||||||
|
|
||||||
ARCH?=amd64
|
ARCH?=amd64
|
||||||
VERSION?=2.1.0-b
|
VERSION?=2.1.1-b
|
||||||
|
|
||||||
RUSTUP_HOME?=/opt/rust
|
RUSTUP_HOME?=/opt/rust
|
||||||
CARGO_HOME?=/opt/rust/cargo
|
CARGO_HOME?=/opt/rust/cargo
|
||||||
@ -202,4 +202,4 @@ sdk:
|
|||||||
done
|
done
|
||||||
|
|
||||||
# --push
|
# --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
|
COPY docker/antos/start.sh /start.sh
|
||||||
RUN chmod 700 /start.sh
|
RUN chmod 700 /start.sh
|
||||||
|
RUN chmod +x /opt/www/bin/*
|
||||||
|
|
||||||
ENV LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/opt/www/lib/"
|
ENV LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/opt/www/lib/"
|
||||||
ENV PATH="$PATH:/opt/www/bin/"
|
ENV PATH="$PATH:/opt/www/bin/"
|
||||||
|
Reference in New Issue
Block a user