mirror of
https://github.com/containers/podman-compose.git
synced 2024-11-25 09:23:31 +01:00
add release.yml workflow
This commit is contained in:
parent
69e95be2f6
commit
4203f799ee
27
.github/workflows/release.yml
vendored
Normal file
27
.github/workflows/release.yml
vendored
Normal file
@ -0,0 +1,27 @@
|
||||
name: Build and Release
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- 'v*.*.*'
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Build binary
|
||||
run: |
|
||||
mkdir -p release/
|
||||
docker build -t podman-compose-bin -v "$PWD/release:/result" .
|
||||
mv "$PWD/release/podman-compose" "$PWD/release/podman-compose-linux-x86"
|
||||
|
||||
- name: Upload release asset
|
||||
uses: softprops/action-gh-release@v1
|
||||
with:
|
||||
files: ./release/podman-compose-linux-x86
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
Loading…
Reference in New Issue
Block a user