Skip to content

Commit

Permalink
Makefile: push both version and latest of docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
Pixep committed Nov 16, 2024
1 parent e1e4085 commit 399aa95
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.23-alpine as builder
FROM golang:1.23-alpine AS builder

RUN apk add --update --no-cache git gcc musl-dev make

Expand Down
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
IMAGE_NAME = crowlet
IMAGE_VERSION = latest
IMAGE_VERSION = 0.3.0
IMAGE_ORG = aleravat
IMAGE_TAG = $(IMAGE_ORG)/$(IMAGE_NAME):$(IMAGE_VERSION)
IMAGE_TAG_LATEST = $(IMAGE_ORG)/$(IMAGE_NAME):latest

.DEFAULT_GOAL := build

Expand Down Expand Up @@ -41,7 +42,9 @@ docker-build:: ## Builds the docker image

docker-push:: ## Pushes the docker image to the registry
@echo Pushing $(IMAGE_TAG)
@docker image tag $(IMAGE_TAG) $(IMAGE_TAG_LATEST)
@docker push $(IMAGE_TAG)
@docker push $(IMAGE_TAG_LATEST)

docker-release:: docker-build docker-push ## Builds and pushes the docker image to the registry

Expand Down

0 comments on commit 399aa95

Please sign in to comment.