File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 14
14
uses : actions/checkout@v3
15
15
- name : Prepare docker buildx
16
16
uses : docker/setup-buildx-action@v2
17
- - name : Login to ghcr.io
18
- run : echo "${{ secrets.DOCKER_HUB_PASS }}" | docker login -u ${{ secrets.DOCKER_HUB_USER }} --password-stdin
17
+ - name : Login to Docker Hub
18
+ run : |
19
+ echo "${{ secrets.DOCKER_HUB_PASS }}" | docker login -u ${{ secrets.DOCKER_HUB_USER }} --password-stdin
20
+ echo "${{ secrets.GITHUB_TOKEN }}" | docker login -u ${{ github.actor }} --password-stdin ghcr.io
19
21
- name : Build Docker image
20
22
uses : docker/build-push-action@v3
21
23
with :
24
26
push : true
25
27
cache-from : type=gha
26
28
cache-to : type=gha,mode=max
27
- tags : tivix/docker-nginx:${{ github.sha }}, tivix/docker-nginx:${{ env.CI_REF_NAME }}
29
+ tags : tivix/docker-nginx:${{ github.sha }}, tivix/docker-nginx:${{ env.CI_REF_NAME }}, ghcr.io/tivix/docker-nginx:${{ env.CI_REF_NAME }}
28
30
- name : Run Trivy vulnerability scanner
29
31
uses : aquasecurity/trivy-action@master
30
32
with :
You can’t perform that action at this time.
0 commit comments