Skip to content

fix: typo

fix: typo #25

Workflow file for this run

name: Testing Container
on: [push]
jobs:
testing:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.9"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install ansible-builder
- name: Set branch name environment variable
run: echo "BRANCH_NAME=$(echo ${GITHUB_REF#refs/heads/} | sed 's/\//-/g')" >> $GITHUB_ENV
- name: Build EE with Docker
env:
DOCKER_BUILDKIT: 1
run: |
ansible-builder build -v3 --tag=ghcr.io/arillso/kubernetes:${{ env.BRANCH_NAME }} --tag=arillso/kubernetes:${{ env.BRANCH_NAME }} --container-runtime=docker
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: sbaerlocher
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Push
run: |
docker push ghcr.io/arillso/kubernetes:${{ env.BRANCH_NAME }}
docker push arillso/kubernetes:${{ env.BRANCH_NAME }}