docs: ai: Forbid running shell commands with internal tool alternatives #172
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
| name: Push Docker image for Dotfiles Generator | |
| on: | |
| push: | |
| branches: [master] | |
| pull_request: | |
| branches: [master] | |
| jobs: | |
| build-and-push: | |
| runs-on: ubuntu-20.04 | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Build the Docker image | |
| run: | | |
| commit="$(git rev-parse HEAD)" | |
| docker build . \ | |
| --tag docker.veracioux.me/dotfiles-generator:"$commit" \ | |
| --file bootstrap/Dockerfile | |
| if [ "${{github.event_name}}" != "pull_request" ]; then | |
| docker tag docker.veracioux.me/dotfiles-generator:{"$commit",latest} | |
| fi | |
| - name: Push the image to my private registry | |
| run: | | |
| commit="$(git rev-parse HEAD)" | |
| echo "${{secrets.DOCKER_PASSWORD}}" | \ | |
| docker login docker.veracioux.me --password-stdin --username "${{secrets.DOCKER_USERNAME}}" | |
| docker push docker.veracioux.me/dotfiles-generator:"$commit" | |
| if [ "${{github.event_name}}" != "pull_request" ]; then | |
| docker push docker.veracioux.me/dotfiles-generator:latest | |
| fi |