Skip to content

Commit

Permalink
Add docker.io image push
Browse files Browse the repository at this point in the history
With this commit we publish on ghcr.io, quay.io and docker.io.

Fixes: #15
  • Loading branch information
rascasoft committed Sep 10, 2024
1 parent 96843f8 commit 1dc3115
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,14 @@ jobs:
username: ${{ vars.QUAY_ROBOT_NAME }}
password: ${{ secrets.QUAY_ROBOT_TOKEN }}

- name: Login to docker.io
if: github.event_name != 'pull_request'
uses: docker/login-action@v3
with:
registry: docker.io
username: ${{ vars.DOCKER_USER }}
password: ${{ secrets.DOCKER_TOKEN }}

- name: Build and push
uses: docker/build-push-action@v5
with:
Expand All @@ -95,3 +103,5 @@ jobs:
ghcr.io/mmul-it/kpa:${{ github.ref_name }}
quay.io/mmul/kpa:latest
quay.io/mmul/kpa:${{ github.ref_name }}
docker.io/mmul/kpa:latest
docker.io/mmul/kpa:${{ github.ref_name }}
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,10 @@ be no need to rely on proprietary tools and formats to create contents.
**KPA** is at the same time:

- The definition of an approach, described in this page.
- A container named **kpa** available in the
[GitHub Container Registry](https://ghcr.io/mmul-it/kpa).
- A container named **kpa** available on the main public container registries:
- [GitHub Container Registry](https://ghcr.io/mmul-it/kpa).
- [Quay](https://quay.io/repository/mmul/kpa).
- [Docker Hub](https://hub.docker.com/r/mmul/kpa).
- An Ansible role named **kpa_generator** available in
[Ansible Galaxy](https://galaxy.ansible.com/mmul/kpa_generator).

Expand Down Expand Up @@ -297,7 +299,7 @@ Your command line will be something like this:
> docker run --rm \
-v $PWD:/kpa/projects/example \
-v /tmp:/kpa/output \
quay.io/mmul/kpa --project example --yml Example-Training-01.yml
ghcr.io/mmul/kpa --project example --yml Example-Training-01.yml
```

After a really short time you should get:
Expand Down

0 comments on commit 1dc3115

Please sign in to comment.