-
Notifications
You must be signed in to change notification settings - Fork 21
44 lines (43 loc) · 1.25 KB
/
make_dist.yaml
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
38
39
40
41
42
43
name: make_dist
on:
push:
tags:
- v*
env:
CACERT_CONTENT: ${{ secrets.CACERT }}
CACERT: custom-ca.crt
jobs:
make_dist:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Install pipenv
run: pip install pipenv
- name: quay.io login
uses: docker/login-action@v1
with:
registry: quay.io
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_ROBOT_TOKEN }}
- uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: cacert
run: echo "$CACERT_CONTENT" > $CACERT
- name: tools
id: tools
run: echo "::set-output name=url::$(gh api /repos/3scale-qe/tools/releases/latest --jq .tarball_url)"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: make dist
run: make dist IMAGENAME="quay.io/rh_integration/3scale-testsuite" PUSHIMAGE=y
env:
fetch_tools: ${{ steps.tools.outputs.url }}
PUSH_EXTRA: ghcr.io/${{ github.repository }}