Compare commits
No commits in common. "main" and "v0.1.0" have entirely different histories.
3 changed files with 5 additions and 57 deletions
33
.github/workflows/container.yml
vendored
33
.github/workflows/container.yml
vendored
|
@ -1,33 +0,0 @@
|
|||
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
|
||||
run: cargo deb -p lapdev
|
||||
|
||||
- uses: actions/forgejo-release@v2
|
||||
- uses: forgejo/upload-artifact@v4
|
||||
with:
|
||||
direction: upload
|
||||
url: https://fung.uy
|
||||
release-dir: target/debian
|
||||
release-notes: "Automated release"
|
||||
name: lapdev-linux
|
||||
path: |
|
||||
./target/debian/lapdev_${{ github.event.inputs.lapdev_version }}-1_amd64.deb
|
||||
./pkg/common/install.sh
|
||||
|
|
19
Dockerfile
19
Dockerfile
|
@ -1,19 +0,0 @@
|
|||
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