Skip to content

Commit

Permalink
Merge pull request kosmos-io#789 from gao12312/ci_release
Browse files Browse the repository at this point in the history
update release  branch  upload images
  • Loading branch information
duanmengkk authored Jan 2, 2025
2 parents fb886fb + b0b5fe2 commit cb88970
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/dev_release_images.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Upload Images
on:
push:
branches:
- "release_v*.*.*"
jobs:
images:
runs-on: ubuntu-latest
permissions: write-all
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: install Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: install QEMU
uses: docker/setup-qemu-action@v3
- name: install Buildx
uses: docker/setup-buildx-action@v3
- name: Login registry
run: |
echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
- name: Set version from branch
run: echo "VERSION=$(echo ${GITHUB_REF##*/})" >> $GITHUB_ENV
- name: Push images
env:
ON_PLUGINS: true
run: |
make multi-platform-images VERSION=${{ env.VERSION }}

0 comments on commit cb88970

Please sign in to comment.