This file contains hidden or 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
| AZURE_CREDENTIALS: { "clientId": "redacted", "clientSecret": "redacted", "subscriptionId": "redacted", "tenantId": "redacted", "activeDirectoryEndpointUrl": "https://login.microsoftonline.com", "resourceManagerEndpointUrl": "https://management.azure.com/", "activeDirectoryGraphResourceId": "https://graph.windows.net/", "sqlManagementEndpointUrl": "https://management.core.windows.net:8443/", "galleryEndpointUrl": "https://gallery.azure.com/", "managementEndpointUrl": "https://management.core.windows.net/" } |
This file contains hidden or 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
| ├── .actrc | |
| ├── ci-logs | |
| │ ├── dry-run.log | |
| │ └── run.log | |
| ├── Dockerfile | |
| ├── my-repo | |
| ├── .git | |
| ├── .github | |
| │ └── workflows | |
| │ └── tests.yml |
This file contains hidden or 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
| tail -f ci-logs/run.log |
This file contains hidden or 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
| sudo docker run \ | |
| -d --rm \ # delete container when finished | |
| -v /var/run/docker.sock:/var/run/docker.sock \ | |
| -v $(pwd)/my-repo:/project \ # mount repo as volume inside container | |
| -v $(pwd)/ci-logs:/logs \ # logs directory | |
| -e ACTION=pull_request \ # our action (could be push, or something else) | |
| github-actions-pipeline # our image |
This file contains hidden or 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
| docker build -t github-actions-pipeline . |
This file contains hidden or 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
| on: ${ACTION} |
This file contains hidden or 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
| $ tree -a | |
| . | |
| ├── .actrc | |
| ├── Dockerfile | |
| ├── my-repo | |
| ├── .git | |
| ├── .github | |
| │ └── workflows | |
| │ └── tests.yml | |
| └── src |
This file contains hidden or 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
| FROM docker:dind | |
| RUN apk add curl | |
| RUN curl https://raw.githubusercontent.com/nektos/act/master/install.sh | sh | |
| COPY .actrc / | |
| RUN mv /.actrc ~/.actrc | |
| WORKDIR /project |
This file contains hidden or 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
| $ tree -a | |
| . | |
| ├── my-repo | |
| ├── .git | |
| ├── .github | |
| │ └── workflows | |
| │ └── tests.yml | |
| └── src | |
| .actrc |
This file contains hidden or 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
| $ tree -a | |
| . | |
| ├── my-repo | |
| ├── .git | |
| ├── .github | |
| │ └── workflows | |
| │ └── tests.yml | |
| └── src |