lapdev-docker/.github/workflows/container.yml
2025-03-17 20:02:12 -04:00

38 lines
1 KiB
YAML

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 }}
DOCKER_HOST: unix:///run/user/1000/docker.sock
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: 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: |
LAP_VER=${{ github.event.inputs.version }}
tags: |
fung.uy/mycosystems/lapdev:${{ github.event.inputs.version }}