-
Notifications
You must be signed in to change notification settings - Fork 37
67 lines (58 loc) · 1.78 KB
/
release.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: Release
on:
release:
types: [created]
jobs:
release:
runs-on: ubuntu-20.04-8c-32g-300h
env:
DOCKER_CLI_EXPERIMENTAL: enabled
DOCKER_BUILDKIT: '1'
ARTIFACTORY_USER: ${{ secrets.ARTIFACTORY_USER }}
ARTIFACTORY_TOKEN: ${{ secrets.ARTIFACTORY_TOKEN }}
strategy:
matrix:
group: [docker, conan]
include:
- group: docker
args: ""
build: true
push_description: true
- group: conan
args: --use-conan --conan-login --build-missing
build: ${{ contains(github.ref, '/ci-package') }}
push_description: false
steps:
- uses: actions/checkout@v4
- name: Activate Docker buildx
uses: docker/setup-buildx-action@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.9
cache: 'pipenv'
- name: Install pipenv
run: curl https://raw.githubusercontent.com/pypa/pipenv/master/get-pipenv.py | python
- name: Install aswfdocker and dependencies with pipenv
run: pipenv install
- name: Login to DockerHub
if: ${{ matrix.build }}
run: echo ${{ secrets.DOCKERHUB_PASSWORD }} | docker login -u aswfdocker --password-stdin
- name: Build and Push
if: ${{ matrix.build }}
run: |
pipenv run aswfdocker \
--repo-uri $GITHUB_REPOSITORY \
--verbose \
build \
--full-name $GITHUB_REF \
--push YES \
${{ matrix.args }}
- name: Update Docker Hub Description
if: ${{ matrix.push_description }}
run: |
pipenv run aswfdocker \
pushoverview \
--username aswfdocker \
--password ${{ secrets.DOCKERHUB_PASSWORD }} \
--full-name $GITHUB_REF