mirror of
https://github.com/mikefarah/yq.git
synced 2025-01-12 19:25:37 +00:00
trialing github release actions
This commit is contained in:
parent
f059e13f94
commit
f4529614c4
33
.github/workflows/release.yml
vendored
33
.github/workflows/release.yml
vendored
@ -1,10 +1,37 @@
|
|||||||
name: Publish image to Dockerhub
|
name: Publish image to Dockerhub
|
||||||
on:
|
on:
|
||||||
release:
|
push:
|
||||||
types: [released]
|
tags:
|
||||||
|
- 'v*'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
publishGitRelease:
|
||||||
|
environment: gitrelease
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
|
# steps for building assets
|
||||||
|
- name: Cross compile
|
||||||
|
run: ./scripts/xcompile.sh
|
||||||
|
|
||||||
|
- name: Create Release
|
||||||
|
id: create_release
|
||||||
|
uses: actions/create-release@v1.0.0
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
with:
|
||||||
|
tag_name: ${{ github.ref }}
|
||||||
|
release_name: ${{ github.ref }}
|
||||||
|
draft: true
|
||||||
|
prerelease: false
|
||||||
|
|
||||||
|
- uses: shogo82148/actions-upload-release-asset@v1
|
||||||
|
with:
|
||||||
|
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||||
|
asset_path: build/*
|
||||||
|
|
||||||
|
publishDocker:
|
||||||
environment: dockerhub
|
environment: dockerhub
|
||||||
env:
|
env:
|
||||||
IMAGE_NAME: mikefarah/yq
|
IMAGE_NAME: mikefarah/yq
|
||||||
|
Loading…
Reference in New Issue
Block a user