-
Notifications
You must be signed in to change notification settings - Fork 5
37 lines (31 loc) · 947 Bytes
/
centos.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: CentOS
on:
push:
branches:
- main
- feature/*
- antares_integration
- fix/*
release:
types: [ created ]
jobs:
build_sirius:
name: build sirius
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Build sirius using docker image
run: |
docker build -t centos7-sirius -f docker/Dockerfile .
- name: create a container without starting it && retrieve the .tgz
run: |
container_id=$(docker create centos7-sirius)
docker cp $container_id:/centos-7_sirius-solver.zip /tmp
- name: Publish assets
if: ${{ github.event_name == 'release' && github.event.action == 'created' }}
env:
GITHUB_TOKEN: ${{ github.token }}
tag: ${{ github.event.inputs.release_tag }}
run: |
gh release upload "$tag" /tmp/centos-7_sirius-solver.zip