-
Notifications
You must be signed in to change notification settings - Fork 49
34 lines (31 loc) · 1.23 KB
/
ci.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
name: tdnf CI
on: [pull_request, push, workflow_dispatch]
jobs:
photon:
env:
DIST: photon
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: build container
working-directory: ${{ github.workspace }}
run: |
docker build -t ${DIST}/tdnf-build -f ci/Dockerfile.${DIST} .
- name: run container with tests
working-directory: ${{ github.workspace }}
run: |
docker run --security-opt seccomp:unconfined --rm -e DIST -v$(pwd):/build -w/build ${DIST}/tdnf-build ./ci/docker-entrypoint.sh
fedora:
env:
DIST: fedora
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: build container
working-directory: ${{ github.workspace }}
run: |
docker build -t ${DIST}/tdnf-build -f ci/Dockerfile.${DIST} .
- name: run container with tests
working-directory: ${{ github.workspace }}
run: |
docker run --security-opt seccomp:unconfined --rm -e DIST -v$(pwd):/build -w/build ${DIST}/tdnf-build ./ci/docker-entrypoint.sh