Compare commits
33 commits
Author | SHA1 | Date | |
---|---|---|---|
a55e274db9 | |||
8d8b79f97e | |||
e3edd1be01 | |||
062432f843 | |||
efdf2c0cb1 | |||
67a82c6ade | |||
8c0a08af86 | |||
6243ff43e1 | |||
1d312e2fcd | |||
a251ad57c6 | |||
2d6685a0f5 | |||
dba843630d | |||
9ddd7d49f1 | |||
c2cde94e04 | |||
66f1db410a | |||
a2d809c125 | |||
ca1287464c | |||
3b96f6a9bd | |||
9e6d0607b8 | |||
46b3eb6b99 | |||
1d0184be80 | |||
24739e4a91 | |||
1c9d016bd4 | |||
97c0eac373 | |||
a59c72789c | |||
a0971a7789 | |||
c0bcf13c9e | |||
533353e4bc | |||
e6c4f3b55b | |||
4c48cad76d | |||
84d3a33eef | |||
6848538fd6 | |||
3cb0fb5337 |
3 changed files with 57 additions and 5 deletions
33
.github/workflows/container.yml
vendored
Normal file
33
.github/workflows/container.yml
vendored
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
name: Release
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
version:
|
||||||
|
description: "Enter the version to build"
|
||||||
|
required: true
|
||||||
|
default: "0.1.0"
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.PACKAGE_TOKEN }}
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
linux:
|
||||||
|
runs-on: ubuntu-22.04
|
||||||
|
container:
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Login to Self-Hosted Registry
|
||||||
|
uses: docker/login-action@v3
|
||||||
|
with:
|
||||||
|
registry: fung.uy
|
||||||
|
username: ${{ secrets.MYCO_REGISTRY_USER }}
|
||||||
|
password: ${{ secrets.MYCO_PERSONAL_ACCESS_TOKEN }}
|
||||||
|
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
||||||
|
- run: apt update && apt install iptables -y
|
||||||
|
|
||||||
|
- name: Build Docker image
|
||||||
|
run: |
|
||||||
|
docker buildx build --push --build-arg VERSION=${{ github.event.inputs.version }} -t fung.uy/mycosystems/lapdev:${{ github.event.inputs.version }} .
|
10
.github/workflows/release.yml
vendored
10
.github/workflows/release.yml
vendored
|
@ -61,9 +61,9 @@ jobs:
|
||||||
- name: Build lapdev deb
|
- name: Build lapdev deb
|
||||||
run: cargo deb -p lapdev
|
run: cargo deb -p lapdev
|
||||||
|
|
||||||
- uses: forgejo/upload-artifact@v4
|
- uses: actions/forgejo-release@v2
|
||||||
with:
|
with:
|
||||||
name: lapdev-linux
|
direction: upload
|
||||||
path: |
|
url: https://fung.uy
|
||||||
./target/debian/lapdev_${{ github.event.inputs.lapdev_version }}-1_amd64.deb
|
release-dir: target/debian
|
||||||
./pkg/common/install.sh
|
release-notes: "Automated release"
|
19
Dockerfile
Normal file
19
Dockerfile
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
FROM debian:trixie-slim
|
||||||
|
|
||||||
|
ARG VERSION
|
||||||
|
|
||||||
|
# Install required dependencies
|
||||||
|
RUN apt update && \
|
||||||
|
apt install -y curl
|
||||||
|
|
||||||
|
RUN echo "Installing lapdev package." && \
|
||||||
|
curl -sL -o /tmp/lapdev_${VERSION}-1_amd64.deb https://fung.uy/mycosystems/lapdev/releases/download/v${VERSION}/lapdev_${VERSION}-1_amd64.deb && \
|
||||||
|
dpkg -i /tmp/lapdev_${VERSION}-1_amd64.deb
|
||||||
|
|
||||||
|
RUN apt-get clean
|
||||||
|
|
||||||
|
RUN rm /tmp/*
|
||||||
|
|
||||||
|
WORKDIR /var/lib/lapdev
|
||||||
|
|
||||||
|
CMD ["/usr/bin/lapdev && tail -f /app/logs/myapp.log"]
|
Loading…
Add table
Reference in a new issue