diff --git a/.github/workflows/container.yml b/.github/workflows/container.yml new file mode 100644 index 0000000..ae2bfd7 --- /dev/null +++ b/.github/workflows/container.yml @@ -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 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index be60102..35b05f5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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" \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..e69de29