WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Update plugins.txt

Update plugins.txt #46

Workflow file for this run

on:
workflow_dispatch:
inputs:
tag:
description: "Image Tag"
default: "latest"
push:
branches:
- main
- master
tags:
- v**
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Prepare
id: prepare
run: |
VERSION=latest
if [[ $GITHUB_REF == refs/tags/* ]]; then
VERSION=${GITHUB_REF#refs/tags/}
fi
if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
VERSION=${{ github.event.inputs.tag }}
fi
echo ::set-output name=version::${VERSION}
- name: Docker meta for kubesphere
id: meta
uses: docker/metadata-action@v5
with:
images: |
kubesphere/ks-jenkins
tags: ${{ steps.prepare.outputs.version }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_HUB_USER }}
password: ${{ secrets.DOCKER_HUB_TOKEN }}
- name: Build env
id: build_env
run: |
if [ ${{ github.ref_type }} == "tag" ]
then
echo "::set-output name=platforms::linux/amd64,linux/arm64"
else
echo "::set-output name=platforms::linux/amd64"
fi
echo "::set-output name=push::true"
echo "::set-output name=load::false"
echo "::set-output name=ref::${{github.ref_name}}"
echo "::set-output name=short_sha::${GITHUB_SHA::7}"
- name: Build and push Docker images
uses: docker/build-push-action@v6
with:
tags: ${{ steps.meta.outputs.tags }}
push: ${{ steps.build_env.outputs.push }}
load: ${{ steps.build_env.outputs.load }}
platforms: ${{ steps.build_env.outputs.platforms }}