Skip to content

Commit

Permalink
feat: add pre-release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
wanghe-fit2cloud committed Jul 24, 2024
1 parent 6e3115a commit 4a3831a
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 1 deletion.
37 changes: 37 additions & 0 deletions .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: pre-release

on:
workflow_dispatch:
inputs:
version:
description: 'KubePi Version'
default: 'v1.8.0-rc1'
required: true

jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Get Version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: Build and Push
uses: docker/build-push-action@v3
with:
context: .
file: ./Dockerfile
platforms: linux/amd64,linux/arm64
push: true
tags: |
1panel/kubepi:${{ github.event.inputs.version }}
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build Image
name: release

on:
push:
Expand Down

0 comments on commit 4a3831a

Please sign in to comment.