mirror of
https://github.com/pumpitupdev/pumptools.git
synced 2026-09-30 18:57:59 +03:00
62 lines
1.5 KiB
YAML
62 lines
1.5 KiB
YAML
# Regarding build steps, this is a copy of the Dockerfile and should be kept in-sync
|
|
name: "Build pumptools"
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- ci-github
|
|
release:
|
|
types:
|
|
- created
|
|
workflow_dispatch: # allows you to trigger manually
|
|
|
|
# TODO check github actions doc to evaluate if we need this or if this is even a good idea
|
|
# concurrency:
|
|
# group: ${{ github.workflow }}-${{ github.ref }}
|
|
# cancel-in-progress: true
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: "ubuntu-20.04"
|
|
steps:
|
|
- name: "Checkout repository"
|
|
uses: "actions/checkout@v2"
|
|
|
|
- name: "Show workspace"
|
|
run: |
|
|
pwd
|
|
ls -lah
|
|
|
|
- name: "Install prerequisites"
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install -y runc containerd docker.io
|
|
|
|
- name: "Build"
|
|
run: |
|
|
make build-docker
|
|
|
|
- name: "Upload artifacts"
|
|
uses: "actions/upload-artifact@v2"
|
|
with:
|
|
name: "pumptools"
|
|
retention-days: 30
|
|
path: |
|
|
build/docker/pumptools-public.zip
|
|
|
|
# publish-release:
|
|
# runs-on: "ubuntu-20.04"
|
|
# steps:
|
|
# - uses: "actions/download-artifact@v2"
|
|
# with:
|
|
# name: "pumptools"
|
|
# - uses: "marvinpinto/action-automatic-releases@v1.2.1"
|
|
# with:
|
|
# repo_token: "${{ secrets.GITHUB_TOKEN }}"
|
|
# automatic_release_tag: "latest"
|
|
# prerelease: true
|
|
# title: "Development Build"
|
|
# files: |
|
|
# LICENSE.txt
|
|
# *.jar
|