push release instead of artifacts

This commit is contained in:
brooke 2025-03-17 19:20:31 -04:00
parent 528956540c
commit 3cb0fb5337
3 changed files with 55 additions and 5 deletions

50
.github/workflows/container.yml vendored Normal file
View file

@ -0,0 +1,50 @@
name: Release
on:
workflow_dispatch:
inputs:
lapdev_version:
description: "Lapdev version for release"
required: true
default: "v0.1.0"
push:
tags:
- "v*"
defaults:
run:
shell: bash
working-directory: ./lapdev
env:
GITHUB_TOKEN: ${{ secrets.PACKAGE_TOKEN }}
jobs:
linux:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v3
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@master
- name: Login to Self-Hosted Registry
uses: docker/login-action@v3
with:
registry: git.myco.systems
username: ${{ secrets.MYCO_REGISTRY_USER }}
password: ${{ secrets.MYCO_PERSONAL_ACCESS_TOKEN }}
- name: Build and Push Extended Version
uses: docker/build-push-action@v4
with:
builder: ${{ steps.buildx.outputs.name }}
context: ./
file: ./Dockerfile
platforms: linux/amd64
push: true
build-args: |
HUGO_VERSION=0.138.0
NODE_VERSION=22.5.0
tags: |
git.myco.systems/mycosystems/web-ci:latest

View file

@ -61,9 +61,9 @@ jobs:
- name: Build lapdev deb
run: cargo deb -p lapdev
- uses: forgejo/upload-artifact@v4
- uses: actions/forgejo-release@v2
with:
name: lapdev-linux
path: |
./target/debian/lapdev_${{ github.event.inputs.lapdev_version }}-1_amd64.deb
./pkg/common/install.sh
direction: upload
url: https://fung.uy
release-dir: target/debian
release-notes: "Automated release"

0
Dockerfile Normal file
View file