File tree Expand file tree Collapse file tree 3 files changed +82
-86
lines changed Expand file tree Collapse file tree 3 files changed +82
-86
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ name : Build and publish
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+
8+ jobs :
9+ lint :
10+ runs-on : docker
11+ steps :
12+ - uses : actions/checkout@v4
13+ -
uses :
https://github.com/hadolint/[email protected] 14+ with :
15+ dockerfile : Dockerfile
16+
17+ build :
18+ runs-on : dind
19+ steps :
20+ - uses : actions/checkout@v4
21+ - name : Get docker tags
22+ id : tags
23+ shell : sh
24+ env :
25+ VERSION_TYPE : " docker_env"
26+ APP_NAME : " CYBERCHEF"
27+ DOCKERFILE_PATH : " Dockerfile"
28+ CUSTOM_TAGS : " latest"
29+ IMAGE_NAME : " mwalbeck/cyberchef"
30+ run : |
31+ determine-docker-tags
32+ dockerd &
33+ - name : Login to Docker Hub
34+ uses : https://github.com/docker/login-action@v3
35+ with :
36+ username : ${{ secrets.DOCKERHUB_USERNAME }}
37+ password : ${{ secrets.DOCKERHUB_TOKEN }}
38+ - name : Set up Docker Buildx
39+ uses : https://github.com/docker/setup-buildx-action@v3
40+ - name : Build and push
41+ uses : https://github.com/docker/build-push-action@v6
42+ with :
43+ push : true
44+ tags : ${{ steps.tags.outputs.tags }}
45+
Original file line number Diff line number Diff line change 1+ name : Test
2+
3+ on : pull_request
4+
5+ jobs :
6+ lint :
7+ if : github.ref != 'refs/heads/renovate/*'
8+ runs-on : docker
9+ steps :
10+ - uses : actions/checkout@v4
11+ -
uses :
https://github.com/hadolint/[email protected] 12+ with :
13+ dockerfile : Dockerfile
14+
15+ test :
16+ runs-on : dind
17+ steps :
18+ - uses : actions/checkout@v4
19+ - name : Get docker tags
20+ id : tags
21+ shell : sh
22+ env :
23+ VERSION_TYPE : " docker_env"
24+ APP_NAME : " CYBERCHEF"
25+ DOCKERFILE_PATH : " Dockerfile"
26+ CUSTOM_TAGS : " latest"
27+ IMAGE_NAME : " mwalbeck/cyberchef"
28+ run : |
29+ determine-docker-tags
30+ dockerd &
31+ - name : Set up Docker Buildx
32+ uses : https://github.com/docker/setup-buildx-action@v3
33+ - name : Test build
34+ uses : https://github.com/docker/build-push-action@v6
35+ with :
36+ tags : ${{ steps.tags.outputs.tags }}
37+
You can’t perform that action at this time.
0 commit comments