mirror of
https://github.com/house-of-vanity/khm.git
synced 2025-08-21 14:27:14 +00:00
Fix Release action
This commit is contained in:
90
.github/workflows/main.yml
vendored
90
.github/workflows/main.yml
vendored
@@ -146,49 +146,49 @@ jobs:
|
|||||||
generate_release_notes: true
|
generate_release_notes: true
|
||||||
fail_on_unmatched_files: false
|
fail_on_unmatched_files: false
|
||||||
|
|
||||||
# build_docker:
|
build_docker:
|
||||||
# name: Build and Publish Docker Image
|
name: Build and Publish Docker Image
|
||||||
# needs: build
|
needs: build
|
||||||
# runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
# steps:
|
steps:
|
||||||
# - uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
#
|
|
||||||
# - uses: actions/download-artifact@v4
|
- uses: actions/download-artifact@v4
|
||||||
# name: Download Linux MUSL artifact
|
name: Download Linux artifact
|
||||||
# with:
|
with:
|
||||||
# name: ${{ env.BINARY_NAME }}_linux-amd64-musl
|
name: ${{ env.BINARY_NAME }}_linux-amd64
|
||||||
# path: .
|
path: .
|
||||||
#
|
|
||||||
# - name: ls
|
- name: List downloaded files
|
||||||
# run: |
|
run: |
|
||||||
# ls -lah
|
ls -lah
|
||||||
#
|
|
||||||
# - name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
# uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v3
|
||||||
#
|
|
||||||
# - name: Set up QEMU
|
- name: Set up QEMU
|
||||||
# uses: docker/setup-qemu-action@v3
|
uses: docker/setup-qemu-action@v3
|
||||||
#
|
|
||||||
# - name: Login to Docker Hub
|
- name: Login to Docker Hub
|
||||||
# uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
# with:
|
with:
|
||||||
# username: ultradesu
|
username: ultradesu
|
||||||
# password: ${{ secrets.DOCKERHUB_TOKEN }}
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
#
|
|
||||||
# - name: Set exec flag
|
- name: Set exec flag
|
||||||
# run: |
|
run: |
|
||||||
# chmod +x ${{ env.BINARY_NAME }}
|
chmod +x ${{ env.BINARY_NAME }}
|
||||||
#
|
|
||||||
# - name: Set outputs
|
- name: Set outputs
|
||||||
# id: get_tag
|
id: get_tag
|
||||||
# run: |
|
run: |
|
||||||
# echo "tag=$(echo ${GITHUB_REF} | cut -d'/' -f3)" >> $GITHUB_OUTPUT
|
echo "tag=$(echo ${GITHUB_REF} | cut -d'/' -f3)" >> $GITHUB_OUTPUT
|
||||||
#
|
|
||||||
# - name: Build and push Docker image
|
- name: Build and push Docker image
|
||||||
# uses: docker/build-push-action@v5
|
uses: docker/build-push-action@v5
|
||||||
# with:
|
with:
|
||||||
# context: .
|
context: .
|
||||||
# platforms: linux/amd64,linux/arm64
|
platforms: linux/amd64,linux/arm64
|
||||||
# push: true
|
push: true
|
||||||
# tags: ultradesu/${{ env.BINARY_NAME }}:latest,ultradesu/${{ env.BINARY_NAME }}:${{ steps.get_tag.outputs.tag }}
|
tags: ultradesu/${{ env.BINARY_NAME }}:latest,ultradesu/${{ env.BINARY_NAME }}:${{ steps.get_tag.outputs.tag }}
|
||||||
|
|
||||||
|
10
Dockerfile
10
Dockerfile
@@ -1,5 +1,13 @@
|
|||||||
# syntax=docker/dockerfile:1
|
# syntax=docker/dockerfile:1
|
||||||
|
|
||||||
FROM alpine:latest
|
FROM ubuntu:22.04
|
||||||
|
|
||||||
|
# Install basic runtime dependencies
|
||||||
|
RUN apt-get update && apt-get install -y \
|
||||||
|
ca-certificates \
|
||||||
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
COPY khm /usr/local/bin/khm
|
COPY khm /usr/local/bin/khm
|
||||||
|
RUN chmod +x /usr/local/bin/khm
|
||||||
|
|
||||||
ENTRYPOINT ["/usr/local/bin/khm"]
|
ENTRYPOINT ["/usr/local/bin/khm"]
|
||||||
|
Reference in New Issue
Block a user