-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from beeceej/release-via-docker
Release: Publish the release via Dockerhub
- Loading branch information
Showing
8 changed files
with
38 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,6 @@ jobs: | |
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: LGTM | ||
uses: beeceej/[email protected].4 | ||
uses: beeceej/[email protected].6 | ||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,2 @@ | ||
FROM debian:buster-slim | ||
RUN apt-get update -y && apt-get install netbase -y | ||
ADD . . | ||
ENTRYPOINT ./bin/entrypoint | ||
FROM beeceej/lgtm:v0.0.5 | ||
ENTRYPOINT [ "bin/lgtm" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,26 @@ | ||
VERSION := "v0.0.4" | ||
RELEASE_IMAGE := beeceej/lgtm:release | ||
USER := beeceej | ||
IMAGE := lgtm | ||
VERSION := v0.0.6 | ||
REPOSITORY:= $(USER)/$(IMAGE):$(VERSION) | ||
|
||
release: clean lgtm | ||
git tag -a "$(VERSION)" -m "release $(VERSION)" | ||
git push --tags | ||
|
||
lgtm: docker-release | ||
docker run -it --rm -v "$${PWD}/release:/home/opam/opam-repository/lgtm/tmp" beeceej/lgtm:release mv release/lgtm tmp/lgtm | ||
build: | ||
docker build -t $(REPOSITORY) -f Dockerfile.release . | ||
|
||
tag: | ||
docker tag $(REPOSITORY) $(REPOSITORY) | ||
|
||
push: | ||
docker push $(REPOSITORY) | ||
|
||
docker-release: | ||
docker build -t $(RELEASE_IMAGE) -f Dockerfile.release . | ||
Dockerfile: | ||
bin/generate_dockerfile $(VERSION) | ||
|
||
clean: | ||
rm -rf release | ||
rm Dockerfile | ||
|
||
git-release: | ||
git tag -a "$(VERSION)" -m "release $(VERSION)" | ||
git push --tags | ||
|
||
.PHONY: clean docker-release | ||
release: clean build push Dockerfile git-release |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#! /bin/sh | ||
|
||
readonly dockerfile=$(cat <<EOF | ||
FROM beeceej/lgtm:VERSION | ||
ENTRYPOINT [ "bin/lgtm" ] | ||
EOF | ||
) | ||
readonly version="$1" | ||
echo "${dockerfile/VERSION/$version}" > Dockerfile |
Binary file not shown.