Skip to content

Commit

Permalink
build
Browse files Browse the repository at this point in the history
  • Loading branch information
sbaerlocher committed Jan 25, 2024
1 parent fb70a54 commit 4ebb0ce
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 35 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@master
- uses: actions/checkout@v4

- uses: actions/setup-python@v2
- uses: actions/setup-python@v5
with:
python-version: "3.9"

Expand All @@ -26,22 +26,22 @@ jobs:
env:
DOCKER_BUILDKIT: 1
run: |
tox -e docker -- --tag=ghcr.io/arillso/kubernetes:latest --tag=arillso/kubernetes:latest
ansible-builder build -v3 --tag=ghcr.io/arillso/kubernetes:${{ github.sha }} --tag=arillso/kubernetes:${{ github.sha }} --container-runtime=docker
- name: Login to DockerHub
uses: docker/login-action@v1
uses: docker/login-action@v3
with:
username: sbaerlocher
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Login to GitHub Container Registry
uses: docker/login-action@v1
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:${{ github.sha }}
docker push arillso/kubernetes:${{ github.sha }}
docker push ghcr.io/arillso/kubernetes:latest
docker push arillso/kubernetes:latest
9 changes: 5 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
name: Testing Container
on: [push]

jobs:
testing:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@master
- uses: actions/checkout@v4

- uses: actions/setup-python@v2
- uses: actions/setup-python@v5
with:
python-version: "3.9"

Expand All @@ -23,13 +24,13 @@ jobs:
ansible-builder build -v3 --tag=ghcr.io/arillso/kubernetes:${{ github.sha }} --tag=arillso/kubernetes:${{ github.sha }} --container-runtime=docker
- name: Login to DockerHub
uses: docker/login-action@v1
uses: docker/login-action@v3
with:
username: sbaerlocher
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Login to GitHub Container Registry
uses: docker/login-action@v1
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
Expand Down
24 changes: 0 additions & 24 deletions tox.ini

This file was deleted.

0 comments on commit 4ebb0ce

Please sign in to comment.