Skip to content

Commit

Permalink
Merge pull request #51 from codecov/feature/calver
Browse files Browse the repository at this point in the history
Adding calver and rolling tags
  • Loading branch information
trent-codecov committed Jul 26, 2023
2 parents 9a35a73 + e637e0f commit 121198d
Show file tree
Hide file tree
Showing 6 changed files with 53 additions and 6 deletions.
16 changes: 16 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: ''
assignees: ''

---

<!--
Sentry/Codecov employees and contractors can delete or ignore the following.
-->

# 📣 Feedback / 🐛 Bugs

Do you want to file a bug report and/or feature request for Codecov? [Please use our feedback repo instead](https://github.com/codecov/feedback/issues).
16 changes: 16 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: ''
assignees: ''

---

<!--
Sentry/Codecov employees and contractors can delete or ignore the following.
-->

# 📣 Feedback / 🐛 Bugs

Do you want to file a bug report and/or feature request for Codecov? [Please use our feedback repo instead](https://github.com/codecov/feedback/issues).
12 changes: 11 additions & 1 deletion .github/workflows/gcr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,14 @@ jobs:
# Push the Docker image to Google Artifact Registry
- name: Publish
run: |-
make push
make push
- name: Log in to Docker Hub
uses: docker/login-action@v2.1.0
with:
username: ${{ secrets.CODECOV_DEVOPS_DOCKER_USERNAME }}
password: ${{ secrets.CODECOV_DEVOPS_DOCKER_PASSWORD }}

- name: Publish Rolling
run: |-
make push.rolling
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# syntax=docker/dockerfile:1.3
FROM haproxytech/haproxy-alpine:2.8
FROM haproxytech/haproxy-alpine:2.9

RUN apk update --no-cache && apk upgrade --no-cache openssl && apk add --no-cache gettext
RUN mkdir -p /etc/codecov/ssl/certs && chown haproxy:haproxy /etc/codecov/ssl/certs && chown haproxy:haproxy /etc/haproxy
Expand Down
11 changes: 8 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ release_version = `cat VERSION`
build_date ?= $(shell git show -s --date=iso8601-strict --pretty=format:%cd $$sha)
branch = $(shell git branch | grep \* | cut -f2 -d' ')
epoch := $(shell date +"%s")
dockerhub_image := codecov/enterprise-gateway
dockerhub_image := codecov/self-hosted-gateway
IMAGE := ${CODECOV_GATEWAY_IMAGE}
DEVOPS_IMAGE := ${CODECOV_DEVOPS_IMAGE}
export DOCKER_BUILDKIT := 1
Expand All @@ -30,7 +30,7 @@ build.local:
docker tag ${IMAGE}:${release_version}-latest ${IMAGE}:latest-stable

build:
docker build . -t ${IMAGE}:${release_version}-${sha} \
docker build . -t ${IMAGE}:${release_version}-${sha} -t ${IMAGE}:${release_version}-latest -t ${dockerhub_image}:rolling \
--label "org.label-schema.build-date"="$(build_date)" \
--label "org.label-schema.name"="Self-Hosted Gateway" \
--label "org.label-schema.vendor"="Codecov" \
Expand All @@ -42,9 +42,12 @@ build:

push:
docker push ${IMAGE}:${release_version}-${sha}
docker tag ${IMAGE}:${release_version}-${sha} ${IMAGE}:${release_version}-latest
docker push ${IMAGE}:${release_version}-latest


push.rolling:
docker push ${dockerhub_image}:rolling

pull-for-release:
docker pull ${IMAGE}:${release_version}-${sha}

Expand All @@ -54,8 +57,10 @@ pull.devops:
release:
docker tag ${IMAGE}:${release_version}-${sha} ${dockerhub_image}:${release_version}
docker tag ${IMAGE}:${release_version}-${sha} ${dockerhub_image}:latest-stable
docker tag ${IMAGE}:${release_version}-${sha} ${dockerhub_image}:latest-calver
docker push ${dockerhub_image}:${release_version}
docker push ${dockerhub_image}:latest-stable
docker push ${dockerhub_image}:latest-calver

dive:
$(MAKE) pull.devops
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v5.0.1
23.07.07

0 comments on commit 121198d

Please sign in to comment.