forked from slac-lcls/ezpsana
-
Notifications
You must be signed in to change notification settings - Fork 0
/
github_actions.template
33 lines (31 loc) · 1.01 KB
/
github_actions.template
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
# Do not edit, generated automatically
# by the create-container.py script.
# Last updated on: {{ last_update }}
name: tpprwr
on:
push:
tags:
- 'ezbuild-*'
jobs:
build-container:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2
- name: setup python
uses: actions/setup-python@v2
with:
python-version: 3.x
- name: install dependencies
run: pip install pyyaml docker jinja2
- name: create yaml file
run: python create-container.py {{ create_container_args }}
- name: build container
run: docker build {{ docker_build_args }} docker
- name: login to DockerHub
uses: docker/login-action@v1
with:
{% raw %}username: ${{ secrets.DOCKERHUB_FRED_USERNAME }}{% endraw %}
{% raw %}password: ${{ secrets.DOCKERHUB_FRED_TOKEN }}{% endraw %}
- name: upload container
run: docker push {{ docker_build_tag }}