Compare commits

...

33 commits
v0.1.0 ... main

Author SHA1 Message Date
a55e274db9 Update Dockerfile 2025-03-23 23:24:16 -04:00
8d8b79f97e update buildx image 2025-03-17 22:02:07 -04:00
e3edd1be01 update 2025-03-17 21:54:23 -04:00
062432f843 update 2025-03-17 21:52:49 -04:00
efdf2c0cb1 add -y 2025-03-17 21:41:59 -04:00
67a82c6ade add iptables 2025-03-17 21:40:49 -04:00
8c0a08af86 update 2025-03-17 21:39:11 -04:00
6243ff43e1 update 2025-03-17 21:17:03 -04:00
1d312e2fcd update 2025-03-17 21:15:46 -04:00
a251ad57c6 update 2025-03-17 21:04:21 -04:00
2d6685a0f5 update 2025-03-17 21:03:17 -04:00
dba843630d update 2025-03-17 21:01:47 -04:00
9ddd7d49f1 update 2025-03-17 20:59:37 -04:00
c2cde94e04 update 2025-03-17 20:50:27 -04:00
66f1db410a update 2025-03-17 20:28:44 -04:00
a2d809c125 update 2025-03-17 20:26:05 -04:00
ca1287464c update 2025-03-17 20:24:36 -04:00
3b96f6a9bd update 2025-03-17 20:23:51 -04:00
9e6d0607b8 update 2025-03-17 20:23:29 -04:00
46b3eb6b99 update 2025-03-17 20:21:19 -04:00
1d0184be80 update 2025-03-17 20:17:30 -04:00
24739e4a91 remove docker_host 2025-03-17 20:09:54 -04:00
1c9d016bd4 update final job title 2025-03-17 20:02:38 -04:00
97c0eac373 update 2025-03-17 20:02:12 -04:00
a59c72789c use rootless docker sock 2025-03-17 19:58:16 -04:00
a0971a7789 switch to non-beta image 2025-03-17 19:56:37 -04:00
c0bcf13c9e update 2025-03-17 19:55:33 -04:00
533353e4bc docker in docker 2025-03-17 19:45:37 -04:00
e6c4f3b55b update registery url 2025-03-17 19:42:37 -04:00
4c48cad76d remove buildx step, I think the image comes with it setup? 2025-03-17 19:41:51 -04:00
84d3a33eef update 2025-03-17 19:39:05 -04:00
6848538fd6 add dockerfile to build container 2025-03-17 19:38:01 -04:00
3cb0fb5337 push release instead of artifacts 2025-03-17 19:20:31 -04:00
3 changed files with 57 additions and 5 deletions

33
.github/workflows/container.yml vendored Normal file
View 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 }} .

View file

@ -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
View 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"]