Skip to content

Commit 793bfdf

Browse files
committed
Use docker release command
1 parent 5929cca commit 793bfdf

File tree

6 files changed

+11
-21
lines changed

6 files changed

+11
-21
lines changed

.github/workflow-templates/publish.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,5 @@ jobs:
2121
TAG: ${{steps.tmp.outputs.tag}}
2222
- name: Docker login
2323
run: docker login docker.pkg.github.com -u $GITHUB_ACTOR -p ${{ secrets.GITHUB_TOKEN }}
24-
- name: Build image
25-
run: make docker-build BIN=$IMAGE_NAME
26-
- name: Publish image
27-
run: make docker-publish BIN=$IMAGE_NAME REGISTRY=docker.pkg.github.com/$GITHUB_REPOSITORY VERSION=${{ steps.vars.outputs.tag }}
24+
- name: Release images
25+
run: make docker-release BIN=$IMAGE_NAME REGISTRY=docker.pkg.github.com/$GITHUB_REPOSITORY VERSION=${{ steps.vars.outputs.tag }}

.github/workflows/auth-publish.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,5 @@ jobs:
2121
TAG: ${{steps.tmp.outputs.tag}}
2222
- name: Docker login
2323
run: docker login docker.pkg.github.com -u $GITHUB_ACTOR -p ${{ secrets.GITHUB_TOKEN }}
24-
- name: Build image
25-
run: make docker-build BIN=$IMAGE_NAME
26-
- name: Publish image
27-
run: make docker-publish BIN=$IMAGE_NAME REGISTRY=docker.pkg.github.com/$GITHUB_REPOSITORY VERSION=${{ steps.vars.outputs.tag }}
24+
- name: Release images
25+
run: make docker-release BIN=$IMAGE_NAME REGISTRY=docker.pkg.github.com/$GITHUB_REPOSITORY VERSION=${{ steps.vars.outputs.tag }}

.github/workflows/migrate-publish.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,5 @@ jobs:
2121
TAG: ${{steps.tmp.outputs.tag}}
2222
- name: Docker login
2323
run: docker login docker.pkg.github.com -u $GITHUB_ACTOR -p ${{ secrets.GITHUB_TOKEN }}
24-
- name: Build image
25-
run: make docker-build BIN=$IMAGE_NAME
26-
- name: Publish image
27-
run: make docker-publish BIN=$IMAGE_NAME REGISTRY=docker.pkg.github.com/$GITHUB_REPOSITORY VERSION=${{ steps.vars.outputs.tag }}
24+
- name: Release images
25+
run: make docker-release BIN=$IMAGE_NAME REGISTRY=docker.pkg.github.com/$GITHUB_REPOSITORY VERSION=${{ steps.vars.outputs.tag }}

.github/workflows/user-publish.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,5 @@ jobs:
2121
TAG: ${{steps.tmp.outputs.tag}}
2222
- name: Docker login
2323
run: docker login docker.pkg.github.com -u $GITHUB_ACTOR -p ${{ secrets.GITHUB_TOKEN }}
24-
- name: Build image
25-
run: make docker-build BIN=$IMAGE_NAME
26-
- name: Publish image
27-
run: make docker-publish BIN=$IMAGE_NAME REGISTRY=docker.pkg.github.com/$GITHUB_REPOSITORY VERSION=${{ steps.vars.outputs.tag }}
24+
- name: Release images
25+
run: make docker-release BIN=$IMAGE_NAME REGISTRY=docker.pkg.github.com/$GITHUB_REPOSITORY VERSION=${{ steps.vars.outputs.tag }}

.github/workflows/web-publish.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,5 @@ jobs:
2121
TAG: ${{steps.tmp.outputs.tag}}
2222
- name: Docker login
2323
run: docker login docker.pkg.github.com -u $GITHUB_ACTOR -p ${{ secrets.GITHUB_TOKEN }}
24-
- name: Build image
25-
run: make docker-build BIN=$IMAGE_NAME
26-
- name: Publish image
27-
run: make docker-publish BIN=$IMAGE_NAME REGISTRY=docker.pkg.github.com/$GITHUB_REPOSITORY VERSION=${{ steps.vars.outputs.tag }}
24+
- name: Release images
25+
run: make docker-release BIN=$IMAGE_NAME REGISTRY=docker.pkg.github.com/$GITHUB_REPOSITORY VERSION=${{ steps.vars.outputs.tag }}

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ docker-publish: docker-tag-latest docker-tag-version docker-publish-latest docke
4343

4444
docker-publish-latest:
4545
@echo 'publish latest to $(REGISTRY)'
46-
docker push $(REGISTRY)/$(BIN):latest
46+
docker push $(REGISTRY)/go-api-boilerplate-$(BIN):latest
4747

4848
docker-publish-version:
4949
@echo 'publish $(VERSION) to $(REGISTRY)'

0 commit comments

Comments
 (0)