-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (35 loc) · 1.12 KB
/
test.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
name: Testing Container
on: [push]
jobs:
testing:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/setup-python@v2
with:
python-version: "3.9"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install tox
pip install ansible-builder
- name: Build EE with Docker
env:
DOCKER_BUILDKIT: 1
run: |
tox -e docker -- --tag=ghcr.io/arillso/kubernetes:${{ github.sha }} --tag=arillso/kubernetes:${{ github.sha }}
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: sbaerlocher
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Push
run: |
docker push ghcr.io/arillso/kubernetes:${{ github.sha }}
docker push arillso/kubernetes:${{ github.sha }}