Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update golang docker tag to v1.20.4 #4

Open
wants to merge 64 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
Show all changes
64 commits
Select commit Hold shift + click to select a range
b81f60f
more deployment docs
ekristen Oct 10, 2021
980cf75
chart work and publishing
ekristen Oct 11, 2021
9157fe0
removing old workflows
ekristen Oct 11, 2021
e8df0ca
update mkdocs meta, adding workflow to release docs
ekristen Oct 11, 2021
c5ddcac
organize and add to .gitignore
ekristen Oct 11, 2021
a7ba124
switch to main branch
ekristen Oct 11, 2021
7ae6764
allow for namespace to be configurable
ekristen Oct 11, 2021
f5acf60
switch to using goreleaser
ekristen Oct 11, 2021
045a049
switching to goatlas-io
ekristen Oct 11, 2021
de5721b
change module name to github.com/goatlas-io/atlas
ekristen Oct 11, 2021
790b0e2
allow for manual run of release-charts
ekristen Oct 11, 2021
5c9a4d5
fix: github action for chart release
ekristen Oct 11, 2021
c969eea
pin action version
ekristen Oct 11, 2021
1772c03
fix release-charts
ekristen Oct 11, 2021
4cca625
attempt to fix chart release
ekristen Oct 11, 2021
af57dea
attempt to fix chart release
ekristen Oct 11, 2021
0402245
fixing helm chart deps and deployment
ekristen Oct 11, 2021
d7e698b
publish docs on main push for now
ekristen Oct 12, 2021
2434a44
use bot token
ekristen Oct 12, 2021
44ec7f3
tweak atlas envoy chart and renovate
ekristen Oct 13, 2021
1e727fc
ensure CNAME is copied over for docs
ekristen Oct 13, 2021
33af4fa
fixing metadata for mkdocs
ekristen Oct 13, 2021
511a74d
fix renovate configuration for helm updates
ekristen Oct 13, 2021
889fb37
documentation update
ekristen Oct 13, 2021
aab57d8
build on push to main branch
ekristen Oct 14, 2021
f62b9c4
remove charts release from the workflow file
ekristen Oct 14, 2021
c31f644
working on building atlas on commits
ekristen Oct 14, 2021
7fa4985
improving docker image tags
ekristen Oct 14, 2021
7df3d87
working docker tags
ekristen Oct 14, 2021
173b7b2
build for darwin too
ekristen Oct 14, 2021
ea2adcd
fix docker images
ekristen Oct 14, 2021
12a626a
switch to main
ekristen Oct 14, 2021
45cce91
version: 0.1.1
ekristen Oct 14, 2021
8c87b1c
build docker images for branch separately
ekristen Oct 14, 2021
4a36922
update envoy chart to create altas alertmanager config for use by pro…
ekristen Oct 14, 2021
88e1ec0
update .ci script for new file format
ekristen Oct 14, 2021
cb37543
updating image ref on chart
ekristen Oct 14, 2021
b33f056
update script to use latest chart changes
ekristen Oct 14, 2021
3f7a9b7
Update Helm release envoy to v1.2.0 (#13)
renovate[bot] Oct 14, 2021
1af750e
version: 0.2.0
ekristen Oct 15, 2021
6bb8e73
fix ci script, ignore .bak files
ekristen Oct 15, 2021
98be8b7
version: 0.2.1
ekristen Oct 15, 2021
0d0f0e2
fixing envoy version, and rely on template for envoy version
ekristen Oct 15, 2021
7c62620
fixing docker image on
ekristen Oct 15, 2021
19c0d10
reorganize examples
ekristen Oct 16, 2021
25fd9f6
another attempt at building and pushing docker image when not a tag
ekristen Oct 16, 2021
fc8173f
try again on current tag
ekristen Oct 16, 2021
c1c6044
fix link in docs
ekristen Oct 16, 2021
e9fe688
switch to branch-short-timestamp for snapshots
ekristen Oct 16, 2021
cc804e3
fix bad format in helm chart
ekristen Oct 16, 2021
8558e34
change script to work with public repo!
ekristen Oct 16, 2021
8423bdf
Update module github.com/rancher/wrangler to v0.8.7 (#14)
renovate[bot] Oct 16, 2021
828ed24
remove bad renovate config entry
ekristen Oct 16, 2021
0b6c0b9
Merge branch 'main' of github.com:goatlas-io/atlas
ekristen Oct 16, 2021
558334c
Update Helm release envoy to v1.2.1 (#16)
renovate[bot] Oct 16, 2021
999b8cb
version: 0.3.0
ekristen Oct 16, 2021
831e659
fixing goreleaser
ekristen Oct 16, 2021
c6dfafa
version: 0.3.1
ekristen Oct 16, 2021
0e2b404
docs: add preflight instructions to quick-start
ekristen Oct 16, 2021
05bfd41
docs: fix typo
ekristen Oct 16, 2021
f92912c
docs: tweak verbiage
ekristen Oct 16, 2021
b086b7e
docs: improving quick-start
ekristen Oct 16, 2021
13d210a
docs: fix header formatting
ekristen Oct 30, 2021
9f05ee4
chore(deps): update golang docker tag to v1.20.4
renovate[bot] May 28, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions .ci/tag-version
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@

TAG=${1}
VALID_TAG=false
MASTER_ONLY=true
MAIN_ONLY=true

if [ "x${TAG}" == "x" ]; then
echo "You must specify a tag"
@@ -23,16 +23,16 @@ fi

if echo "${TAG}" | grep -qE "^[0-9]+\.[0-9]+\.[0-9]+-rc\.[0-9]+$"; then
VALID_TAG=true
MASTER_ONLY=false
MAIN_ONLY=false
fi

if echo "${TAG}" | grep -qE "^[0-9]+\.[0-9]+\.[0-9]+-rc[0-9]+$"; then
VALID_TAG=true
MASTER_ONLY=false
MAIN_ONLY=false
fi

if [ "${BRANCH}" != "master" ] && [ "${MASTER_ONLY}" == "true" ]; then
echo "You must only be on the master branch"
if [ "${BRANCH}" != "main" ] && [ "${MAIN_ONLY}" == "true" ]; then
echo "You must only be on the main branch"
exit 12
fi

@@ -46,10 +46,10 @@ MSG="version: ${TAG}"

echo "$TAG" > VERSION

if [ -f chart/Chart.yaml ]; then
sed -i.bak "s/appVersion: .*/appVersion: ${TAG}/g" chart/Chart.yaml
sed -i.bak "s/tag: .*/tag: ${VTAG}/g" chart/values.yaml
rm chart/*.bak
if [ -f charts/atlas/Chart.yaml ]; then
sed -i.bak "s/appVersion: .*/appVersion: ${TAG}/g" charts/atlas/Chart.yaml
sed -i.bak "s/tag: .*/tag: ${VTAG}/g" charts/atlas/values.yaml
rm charts/atlas/*.bak
fi

if [ -f pkg/common/version.go ]; then
33 changes: 29 additions & 4 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -14,12 +14,37 @@
]
},
{
"matchDatasources": [
"go"
],
"groupName": "atlas-envoy",
"groupSlug": "atlas-envoy",
"matchPackagePatterns": [
"^github.com/aws/aws-sdk-go-v2/.*"
"envoy"
],
"matchDatasources": [
"helm"
]
}
],
"regexManagers": [
{
"fileMatch": [
"charts/.+.yaml$"
],
"matchStrings": [
"appVersion:\\s(?<currentValue>.*)\\s?",
"image:\\srepository:\\s(?<depName>.*)\\stag:\\s(?<currentValue>.*)\\s?"
],
"datasourceTemplate": "github-releases"
},
{
"fileMatch": [
".*.tmpl$"
],
"matchStrings": [
"chart:\\shttps://charts.goatlas.io/envoy-(?<currentValue>.*).tgz\\s?",
"spec:\\s+chart:\\s(?<depName>.*)\\s+version:\\s(?<currentValue>.*)\\s+?"
],
"datasourceTemplate": "helm",
"registryUrlTemplate": "https://charts.goatlas.io"
}
]
}
103 changes: 0 additions & 103 deletions .github/workflows/docker.yml

This file was deleted.

23 changes: 23 additions & 0 deletions .github/workflows/release-charts.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: release-charts

on:
workflow_dispatch:
push:
branches:
- main

jobs:
charts:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Publish Helm charts
uses: stefanprodan/helm-gh-pages@master
with:
token: ${{ secrets.BOT_GITHUB_TOKEN }}
charts_dir: charts
charts_url: https://charts.goatlas.io
owner: goatlas-io
repository: charts
branch: gh-pages
linting: off
29 changes: 29 additions & 0 deletions .github/workflows/release-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: release-docs

on:
workflow_dispatch:
push:
branches:
- main

jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.x
- run: pip install mkdocs-material
- run: pip install mkdocs-material mkdocs-awesome-pages-plugin mkdocs-minify-plugin mkdocs-redirects
- run: mkdocs build
- name: Deploy to GitHub Pages
if: success()
uses: crazy-max/ghaction-github-pages@v2
with:
repo: goatlas-io/docs
target_branch: gh-pages
build_dir: public
env:
GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN }}
16 changes: 0 additions & 16 deletions .github/workflows/release-drafter.yml

This file was deleted.

92 changes: 92 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
name: release

on:
workflow_dispatch:
push:
branches:
- main
tags:
- "v*"
pull_request:
branches:
- main

jobs:
version:
runs-on: ubuntu-latest
if: startsWith(github.head_ref, 'renovate') == false
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Detect Version for Docker
id: docker-version
run: echo ::set-output name=VERSION::$(SEP="-" .ci/version)
- name: Detect Version
id: version
run: echo ::set-output name=VERSION::$(.ci/version)
outputs:
docker-version: ${{ steps.docker-version.outputs.VERSION }}
version: ${{ steps.version.outputs.VERSION }}

goreleaser:
runs-on: ubuntu-latest
needs:
- version
env:
SUMMARY: ${{ needs.version.outputs.docker-version }}
VERSION: ${{ needs.version.outputs.version }}
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.16
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract branch name
shell: bash
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
id: extract_branch
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
if: startsWith(github.ref , 'refs/tags/v') == true
with:
distribution: goreleaser
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: ${{ steps.extract_branch.outputs.branch }}
- name: Run GoReleaser in Snapshot Mode
uses: goreleaser/goreleaser-action@v2
if: startsWith(github.ref , 'refs/tags/v') == false
with:
distribution: goreleaser
version: latest
args: release --rm-dist --snapshot
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: ${{ steps.extract_branch.outputs.branch }}
GORELEASER_CURRENT_TAG: ${{ needs.version.outputs.docker-version }}
- name: Push Snapshot Docker Image
if: startsWith(github.ref , 'refs/tags/v') == false
run: |
docker push $(docker images -a | grep goatlas | awk '{ print $1 ":" $2 }')
- name: Artifact Upload
uses: actions/upload-artifact@v2
if: startsWith(github.ref , 'refs/tags/v') == false
with:
name: release
path: |
release/*.tar.gz
release/config.yaml
release/checksums.txt
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -4,10 +4,10 @@ on:
workflow_dispatch:
pull_request:
branches:
- master
- main
push:
branches:
- master
- main

jobs:
tests:
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -2,6 +2,11 @@
vendor
hack/deployment/**/*.json
hack/deployment/**/*.yaml
examples/demo*/**/*.json
examples/demo*/**/*.yaml
charts/**/*.tgz
release
archive

# Files
.envrc
@@ -10,5 +15,5 @@ test-*.yaml
chart/charts/*.tgz
droplet.json
envoy-values.yaml
archive
helm-values.yaml
*.bak
Loading