File tree Expand file tree Collapse file tree 1 file changed +7
-11
lines changed Expand file tree Collapse file tree 1 file changed +7
-11
lines changed Original file line number Diff line number Diff line change @@ -42,31 +42,27 @@ jobs:
42
42
fail_ci_if_error : true
43
43
44
44
build :
45
- if : startsWith(github.ref, 'refs/tags/')
45
+ # if: startsWith(github.ref, 'refs/tags/')
46
46
runs-on : ubuntu-latest
47
47
needs : coverage
48
48
steps :
49
49
- name : Checkout code
50
50
uses : actions/checkout@v2
51
51
- name : Docker Login
52
- uses : docker/login-action@v2.0 .0
52
+ uses : docker/login-action@v2.1 .0
53
53
with :
54
- username : jarpsimoes
55
- password : ${{ secrets.DOCKER_REGISTRY_PASSWORD }}
56
-
57
- - name : Add SHORT_SHA env property with commit short sha
58
- run : echo "SHORT_SHA=`echo ${GITHUB_SHA} | cut -c1-8`" >> $GITHUB_ENV
54
+ server : ghcr.io
55
+ username : ${{ secrets.DOCKER_REGISTRY_GITHUB_TOKEN }}
56
+ password : ${{ secrets.DOCKER_REGISTRY_GITHUB_TOKEN }}
59
57
60
58
- name : Docker Tag
61
59
id : vars
62
60
run : echo ::set-output name=tag::${GITHUB_REF/refs\/tags\//}
63
61
64
62
- name : Build the Docker image
65
63
run : |
66
- docker build . --file Dockerfile --tag jarpsimoes/git_http_server:${{ steps.vars.outputs.tag }}
67
- docker tag jarpsimoes/git_http_server:${{ steps.vars.outputs.tag }} jarpsimoes/git_http_server:latest
64
+ docker build . --file Dockerfile --tag ghcr.io/jarpsimoes/git_http_server:${{ steps.vars.outputs.tag }}
68
65
69
66
- name : Push Image
70
67
run : |
71
- docker push jarpsimoes/git_http_server:${{ steps.vars.outputs.tag }}
72
- docker push jarpsimoes/git_http_server:latest
68
+ docker push ghcr.io/jarpsimoes/git_http_server:${{ steps.vars.outputs.tag }}
You can’t perform that action at this time.
0 commit comments