Update go install for minimal images to use the existing go version #188
Workflow file for this run
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
name: Docker Check | |
on: | |
pull_request: | |
paths: | |
- 'Docker*' | |
- '**/*/Docker*' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
add_test: $(grep --include=\Docker* -rnw * -e 'ADD ' | wc -l) | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
- name: Check ADD | |
run: | | |
if [ "${{ env.add_test }}" != "0" ]; then | |
echo ${{ env.add_test }} | |
echo "Dockerfile contains ADD, use COPY instead" | |
exit 1 | |
fi | |
shell: bash |