Skip to content
This repository has been archived by the owner on Dec 7, 2023. It is now read-only.

Commit

Permalink
workflow: Upload release assets
Browse files Browse the repository at this point in the history
Adds a workflow for automating the ignite and ignited binary releases.
This builds the binaries with `make release` at a given tag and uploads
them to a given tagged release. The release make target also builds the
sandbox image and publishes it automatically with manifest list.
  • Loading branch information
darkowlzz committed Oct 24, 2020
1 parent fc63af7 commit 82777cb
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/upload-release-assets.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Upload release assets

on:
workflow_dispatch:
# Enable manual trigger of this action.
inputs:
tag:
description: Git tag to checkout.
required: true

jobs:
build-and-upload:
runs-on: ubuntu-latest
steps:
- name: Set tag name env var.
run: echo "REL_TAG=${{ github.event.inputs.tag }}" >> $GITHUB_ENV
- uses: actions/checkout@v2
with:
ref: ${{ env.REL_TAG }}
- name: Login to container registry
uses: docker/login-action@v1
with:
registry: docker.io
username: ${{ secrets.CR_USER }}
password: ${{ secrets.CR_PAT }}
- name: Build binaries and push sandbox image
run: make release
- name: Prepare assets
run: |
mkdir -p release
cp bin/releases/${{ env.REL_TAG }}/amd64/ignite release/ignite-amd64
cp bin/releases/${{ env.REL_TAG }}/amd64/ignited release/ignited-amd64
cp bin/releases/${{ env.REL_TAG }}/arm64/ignite release/ignite-arm64
cp bin/releases/${{ env.REL_TAG }}/arm64/ignited release/ignited-arm64
- name: Upload assets
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ env.REL_TAG }}
file_glob: true
file: release/*
overwrite: true

0 comments on commit 82777cb

Please sign in to comment.