generated from AndreasAugustin/template
-
-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* fix(ci): 🐛 (#387) issues within ci * fix(ci): 🐛 (#387) issues within ci * fix(ci): 🐛 (#387) issues within ci * fix(ci): 🐛 (#387) issues within ci * fix(ci): 🐛 (#387) issues within ci
- Loading branch information
1 parent
0818ac0
commit a94785c
Showing
7 changed files
with
121 additions
and
14 deletions.
There are no files selected for viewing
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
name: release-test-docker-images | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
tag: | ||
description: "The docker image tag" | ||
required: true | ||
type: string | ||
secrets: | ||
DOCKERHUB_USERNAME: | ||
description: "The dockerhub username" | ||
required: true | ||
DOCKERHUB_TOKEN: | ||
description: "The dockerhub token" | ||
required: true | ||
workflow_dispatch: | ||
inputs: | ||
tag: | ||
description: "The docker image tag" | ||
required: true | ||
type: string | ||
|
||
permissions: | ||
packages: read | ||
|
||
jobs: | ||
test-docker-images: | ||
strategy: | ||
matrix: | ||
docker-image: | ||
- ghcr.io/andreasaugustin/actions-template-sync | ||
- andyaugustin/actions-template-sync | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
lfs: true | ||
fetch-depth: 0 | ||
- name: Login to DockerHub | ||
uses: docker/login-action@v2 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
- name: Login to GHCR | ||
uses: docker/login-action@v2 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
- name: pull image | ||
run: | | ||
docker pull ${{ matrix.docker-image }}:${{ inputs.tag }} | ||
- name: run tests | ||
run: | | ||
echo "Install container tools" | ||
curl -LO https://storage.googleapis.com/container-structure-test/latest/container-structure-test-linux-amd64 \ | ||
&& chmod +x container-structure-test-linux-amd64 \ | ||
&& sudo mv container-structure-test-linux-amd64 /usr/local/bin/container-structure-test | ||
echo "Run tests" | ||
container-structure-test test \ | ||
--image ${{ matrix.docker-image }}:${{ inputs.tag }} \ | ||
--config src/test-config.yaml |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# DOCKER | ||
|
||
## abstract | ||
|
||
If you want to test things out or if you want to build your own action (e.g. in on prem environments) you are able to use docker images. | ||
|
||
- [github registry][github-repo] | ||
- [dockerhub registry][dockerhub-repo] | ||
|
||
## Use the image | ||
|
||
TODO | ||
|
||
[dockerhub-repo]: https://hub.docker.com/r/andyaugustin/actions-template-sync | ||
[github-repo]: https://github.com/AndreasAugustin/actions-template-sync/pkgs/container/actions-template-sync |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,3 +16,4 @@ flowchart LR | |
``` | ||
|
||
- [architecture](./ARCHITECTURE.md) | ||
- [how to use the docker images](./DOCKER.md) |