generated from AndreasAugustin/template
-
-
Notifications
You must be signed in to change notification settings - Fork 35
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -231,6 +231,10 @@ jobs: | |
| git_user_email | `[optional]` set the committer git user.email | `false` | `[email protected].${SOURCE_REPO_HOSTNAME}` | | ||
| git_remote_pull_params |`[optional]` set remote pull parameters | `false` | `--allow-unrelated-histories --squash --strategy=recursive -X theirs` | | ||
|
||
### Docker | ||
|
||
There are docker images available. Please checkout [How to use docker](docs/DOCKER.md) for details. | ||
|
||
### Example | ||
|
||
This repo uses this [template][template] and this action from the [marketplace][marketplace]. | ||
|
@@ -251,7 +255,8 @@ It can also be stored inside `.github` folder. | |
|
||
_Note: It is not possible to sync also the `.templatesyncignore` itself. Any changes from the template repository will be restored automatically._ | ||
|
||
**Remark** reading the [gitglossary][git-glossary] (_pathspec_ section) you see a slight difference to the `.gitignore` file when you like to disable files. | ||
**Remark** reading the [gitglossary][git-glossary] (_pathspec_ section) you see a slight difference to the `.gitignore` file | ||
when you like to disable files you need to use `:!`. | ||
E.g. when you like to disable the sync for all files with exceptions, you need to do smth like | ||
|
||
```txt | ||
|
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) |