-
Notifications
You must be signed in to change notification settings - Fork 3
72 lines (63 loc) · 1.83 KB
/
container.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
name: Build & Publish Konductor Kubespray Container
on:
repository_dispatch:
types:
- container
schedule:
- cron: '0 1 * * *'
push:
paths-ignore:
- 'docs/**'
- '**.md'
branches:
- master
pull_request:
paths-ignore:
- 'docs/**'
- '**.md'
branches:
- master
jobs:
build-and-publish-image:
runs-on: ubuntu-20.04
steps:
- name: Setup Docker Buildx
uses: docker/[email protected]
- name: Git Checkout
uses: actions/[email protected]
with:
ref: ${{ github.event.client_payload.sha }}
- name: Login Docker.io
uses: docker/[email protected]
with:
logout: true
registry: docker.io
username: ${{ secrets.DOCKERHUB_USER }}
password: ${{ secrets.DOCKERHUB_PASSWD }}
- name: Login Quay.io
uses: docker/[email protected]
with:
logout: true
registry: quay.io
username: ${{ secrets.DOCKERHUB_USER }}
password: ${{ secrets.DOCKERHUB_PASSWD }}
- name: Rake Variables
id: rake_vars
run: |
set -x ; \
echo ::set-output name=VARRUNDATE::$(date +%y%m%d%I%M%S); \
echo;
- name: Build Image
uses: docker/[email protected]
with:
context: ./containers/kubespray
file: ./containers/kubespray/Dockerfile
push: true
tags: |
quay.io/containercraft/konductor:kubespray
quay.io/containercraft/konductor:kubespray-${{ steps.rake_vars.outputs.VARRUNDATE }}-${{ github.sha }}
docker.io/containercraft/konductor:kubespray
docker.io/containercraft/konductor:kubespray-${{ steps.rake_vars.outputs.VARRUNDATE }}-${{ github.sha }}
build-args: |
varRunDate=${{ steps.rake_vars.outputs.VARRUNDATE }}
varVerOpenshift=kubespray