File tree Expand file tree Collapse file tree 1 file changed +7
-9
lines changed
Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -14,12 +14,10 @@ jobs:
1414
1515 steps :
1616 - uses : actions/checkout@v3
17- - name : Build the Docker image
18- run : docker build -t "ghcr.io/lemon-mint/timeserver:${GITHUB_REF#refs/*/}" .
19-
20- - name : Push image
21- run : |
22- docker login ghcr.io -u lemon-mint --password ${{ secrets.GITHUB_TOKEN }}
23- docker push "ghcr.io/lemon-mint/timeserver:${GITHUB_REF#refs/*/}"
24- docker tag "ghcr.io/lemon-mint/timeserver:${GITHUB_REF#refs/*/}" "ghcr.io/lemon-mint/timeserver:latest"
25- docker push "ghcr.io/lemon-mint/timeserver:latest"
17+ - uses : imjasonh/setup-ko@v0.6
18+
19+ - name : ko build
20+ env :
21+ KO_DOCKER_REPO : ghcr.io/lemon-mint/timeserver
22+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
23+ run : ko build --tags "${GITHUB_REF#refs/*/},latest" .
You can’t perform that action at this time.
0 commit comments