fix: error #14
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} | |
- 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: Build and push | |
uses: docker/build-push-action@v2 | |
with: | |
push: true | |
tags: | | |
ghcr.io/arillso/kubernetes:${{ github.sha }} | |
arillso/kubernetes:${{ github.sha }} |