File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1515
1616jobs :
1717
18- build :
18+ dummy :
1919 runs-on : ubuntu-latest
20- container : docker:git
21- permissions :
22- contents : read
23- packages : write
2420 steps :
25- - uses : actions/checkout@v3
26- - name : resolve paths-filter error
27- run : git config --global --add safe.directory /__w/${REPOSITORY}/${REPOSITORY}
28- - name : detect build file changes
29- uses : dorny/paths-filter@v2
30- id : filter
31- with :
32- filters : |
33- buildfiles:
34- - project/*
35- - Dockerfile
36- - requirements.txt
37- - tests/requirements-test.txt
38- - name : build & push image to registry
39- if : steps.filter.outputs.buildfiles == 'true'
40- run : |
41- echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u $ACCOUNT --password-stdin
42- docker build -t ghcr.io/${ACCOUNT}/${REPOSITORY} .
43- docker push ghcr.io/${ACCOUNT}/${REPOSITORY}
21+ - run : echo "hello"
You can’t perform that action at this time.
0 commit comments