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: node container: steps: - uses: actions/checkout@v3 - run: curl -fsSL https://get.docker.com -o get-docker.sh && sh get-docker.sh - 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 QEMU uses: docker/setup-qemu-action@v3 - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 - name: Build and Push uses: https://github.com/docker/setup-docker-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 }}