Skip to content

Do Release

Do Release #18

Workflow file for this run

name: Do Release
on:
workflow_dispatch:
inputs:
release_version:
description: 'Release Version'
required: true
default: 'v0.0.0'
jobs:
generate-code-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Zip artifact for deployment
run: zip pxeless-$RELEASE_VERSION.zip ./* -r
shell: bash
env:
RELEASE_VERSION: ${{github.event.inputs.release_version}}
- name: Release
uses: softprops/action-gh-release@v1
with:
generate_release_notes: true
draft: true
name: ${{github.event.inputs.release_version}}
files: |
pxeless-*.zip
generate-docker-release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Docker meta
id: meta
uses: docker/metadata-action@v4
with:
images: |
deserializeme/pxeless
tags: |
"${{github.event.inputs.release_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
if: github.event_name != 'pull_request'
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: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}