lapdev-docker/.github/workflows/container.yml
2025-03-17 21:52:49 -04:00

37 lines
No EOL
1,020 B
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 }}
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 --build-arg LAP_VAR=${{ github.event.inputs.version }} -t fung.uy/mycosystems/lapdev:${{ github.event.inputs.version }} .
- name: Push Docker image
run: |
docker push fung.uy/mycosystems/lapdev:${{ github.event.inputs.version }}