mirror of
https://github.com/gravitl/netmaker.git
synced 2025-11-10 00:30:37 +08:00
upgrade release
This commit is contained in:
parent
de0a6ddb31
commit
7fac37e763
1 changed files with 14 additions and 68 deletions
82
.github/workflows/upgraderelease.yml
vendored
82
.github/workflows/upgraderelease.yml
vendored
|
|
@ -9,76 +9,22 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
netmaker-nmctl:
|
build-packages:
|
||||||
|
uses: ./github/workflows/packages.yml
|
||||||
|
with:
|
||||||
|
version: ${{ github.event.inputs.version }}
|
||||||
|
|
||||||
|
pr-to-main:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: create pr
|
||||||
uses: actions/checkout@v3
|
|
||||||
with:
|
|
||||||
ref: release_${{ github.event.inputs.version}}
|
|
||||||
fetch-depth: 0
|
|
||||||
- name: Get Tags
|
|
||||||
run: |
|
run: |
|
||||||
git fetch --force --tags
|
curl \
|
||||||
- name: Setup go
|
-X POST \
|
||||||
uses: actions/setup-go@v3
|
-H 'Accept: application/vnd.github+json' \
|
||||||
with:
|
-H 'Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}'\
|
||||||
go-version: 1.19
|
-H 'X-GitHub-Api-Version: 2022-11-28' \
|
||||||
- name: GoReleaser
|
https://api.github.com/repos/${{ github.repository }}/pulls \
|
||||||
uses: goreleaser/goreleaser-action@v4
|
-d '{"title":"{{ github.event.inputs.version }}","head":"release_${{ github.event.inputs.version }}","base":"master"}'
|
||||||
with:
|
|
||||||
args: release --clean --release-notes release.md
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
|
|
||||||
docker:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
with:
|
|
||||||
ref: release_${{ github.event.inputs.version}}
|
|
||||||
- name: Set up QEMU
|
|
||||||
uses: docker/setup-qemu-action@v2
|
|
||||||
- name: Set up Docker Buildx
|
|
||||||
uses: docker/setup-buildx-action@v2
|
|
||||||
- name: Login to DockerHub
|
|
||||||
uses: docker/login-action@v2
|
|
||||||
with:
|
|
||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
||||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
||||||
- name: Build and push
|
|
||||||
uses: docker/build-push-action@v3
|
|
||||||
with:
|
|
||||||
context: .
|
|
||||||
platforms: linux/amd64, linux/arm64, linux/arm/v7
|
|
||||||
push: true
|
|
||||||
tags: ${{ github.repository }}:${{ github.event.inputs.version }}, ${{ github.repository }}:latest
|
|
||||||
build-args: |
|
|
||||||
tags=ce
|
|
||||||
|
|
||||||
docker-ee:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
with:
|
|
||||||
ref: release_${{ github.event.inputs.version}}
|
|
||||||
- name: Set up QEMU
|
|
||||||
uses: docker/setup-qemu-action@v2
|
|
||||||
- name: Set up Docker Buildx
|
|
||||||
uses: docker/setup-buildx-action@v2
|
|
||||||
- name: Login to DockerHub
|
|
||||||
uses: docker/login-action@v2
|
|
||||||
with:
|
|
||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
||||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
||||||
- name: Build and push
|
|
||||||
uses: docker/build-push-action@v3
|
|
||||||
with:
|
|
||||||
context: .
|
|
||||||
platforms: linux/amd64, linux/arm64
|
|
||||||
push: true
|
|
||||||
tags: ${{ github.repository }}:${{ github.event.inputs.version }}-ee
|
|
||||||
build-args: |
|
|
||||||
tags=ee
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue