Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
182 commits
Select commit Hold shift + click to select a range
decfc35
chore(dependencies): Autobump korkVersion (#1547)
spinnakerbot Apr 21, 2022
1b86cb8
feat(tasks): Allow max polling of task status to be set (#1546)
jasonmcintosh Apr 21, 2022
2a07109
fix(ci): fetch previous tag from git instead of API (#1551)
kskewes-sf Apr 27, 2022
a0044b8
chore(ci): Mergify - merge Autobumps on release-* (#1552)
kskewes-sf Apr 27, 2022
98c298f
chore(dependencies): Autobump korkVersion (#1557)
spinnakerbot May 27, 2022
24eb976
chore(dependencies): Autobump korkVersion (#1558)
spinnakerbot Jun 6, 2022
f0b0adc
chore(dependencies): Autobump korkVersion (#1559)
spinnakerbot Jun 14, 2022
0e438e2
fix(restart-pipeline) : CheckPrecondition doesn't evaluate expression…
rjalander Jul 12, 2022
f69a901
chore(build): Gradle 7 compatibility (#1561)
sikevux Jul 20, 2022
419f468
chore(dependencies): Autobump korkVersion (#1562)
spinnakerbot Jul 27, 2022
86e6684
chore(dependencies): Autobump fiatVersion (#1563)
spinnakerbot Aug 1, 2022
d98ef19
chore(dockerfile): upgrade to latest alpine image (#1564)
link108 Aug 3, 2022
763aa28
chore(build): Build docker images for multiple architectures (#1567)
mflis Aug 13, 2022
9f09d3a
chore(dependencies): Autobump korkVersion (#1568)
spinnakerbot Aug 15, 2022
fe063a8
chore(dependencies): Autobump fiatVersion (#1571)
spinnakerbot Aug 25, 2022
6d8d8a3
chore(dependencies): Autobump korkVersion (#1572)
spinnakerbot Sep 12, 2022
be5a244
chore(dependencies): Autobump fiatVersion (#1573)
spinnakerbot Sep 13, 2022
1a53988
chore(dependencies): Autobump fiatVersion (#1574)
spinnakerbot Sep 14, 2022
07d4338
chore(dependencies): Autobump korkVersion (#1575)
spinnakerbot Sep 27, 2022
f82fbb5
chore(dependencies): Autobump korkVersion (#1577)
spinnakerbot Oct 3, 2022
c225d56
chore(dependencies): Autobump korkVersion (#1578)
spinnakerbot Oct 10, 2022
d22379a
chore(dependencies): Autobump korkVersion (#1580)
spinnakerbot Oct 19, 2022
cc9d9a0
chore(dependencies): Autobump spinnakerGradleVersion (#1585)
spinnakerbot Nov 18, 2022
94a844f
chore(dependencies): Autobump korkVersion (#1587)
spinnakerbot Nov 19, 2022
1f3a501
chore(dependencies): Autobump korkVersion (#1588)
spinnakerbot Nov 19, 2022
507f0b8
chore(dependencies): Autobump korkVersion (#1590)
spinnakerbot Nov 24, 2022
4f1438c
refactor(web): Clean up redundant spring property in gradle file (#1597)
j-sandy Dec 8, 2022
dabd654
chore(dependencies): Autobump korkVersion (#1598)
spinnakerbot Dec 9, 2022
9588d8c
chore(dependencies): Autobump korkVersion (#1599)
spinnakerbot Dec 9, 2022
eac5aa1
chore(dependencies): Autobump korkVersion (#1600)
spinnakerbot Dec 9, 2022
5840749
chore(dependencies): Autobump korkVersion (#1601)
spinnakerbot Dec 9, 2022
3005eca
chore(dependencies): remove dependency on groovy-all (#1602)
dbyron-sf Dec 9, 2022
4017f88
chore(dependencies): Autobump korkVersion (#1603)
spinnakerbot Dec 15, 2022
133a90d
chore(dependencies): Autobump spinnakerGradleVersion (#1604)
spinnakerbot Dec 22, 2022
57432d8
chore(dependencies): Autobump korkVersion (#1605)
spinnakerbot Jan 12, 2023
5daf7d5
chore(web): clean up for spring property setup (#1606)
j-sandy Jan 23, 2023
05a2f39
chore(dependencies): Autobump korkVersion (#1607)
spinnakerbot Jan 26, 2023
11d0862
chore(dependencies): Autobump korkVersion (#1608)
spinnakerbot Jan 30, 2023
abf0fcf
chore(dependencies): Autobump korkVersion (#1609)
spinnakerbot Jan 30, 2023
dfb77de
feat(web): Add X-SPINNAKER-* optional data to HTTP response header (#…
kchoy-sfdc Feb 3, 2023
a511ed3
fix(web): Fixes ArtifactController and ArtifactService to close the I…
kchoy-sfdc Feb 6, 2023
6c7c5fc
refactor(web): Remove unnecessary code from ResponseHeaderInterceptor…
kchoy-sfdc Feb 8, 2023
66e030e
feat(web): Enable extracting Spinnaker related headers from request i…
kchoy-sfdc Feb 8, 2023
3f1a4cb
chore(dependencies): Autobump korkVersion (#1614)
spinnakerbot Feb 8, 2023
e356ec6
chore(dependencies): Autobump korkVersion (#1615)
spinnakerbot Feb 8, 2023
1168a08
chore(dependencies): Autobump korkVersion (#1616)
spinnakerbot Feb 8, 2023
f015771
chore(dependencies): Autobump korkVersion (#1617)
spinnakerbot Feb 9, 2023
944f3f4
chore(dependencies): Autobump korkVersion (#1618)
spinnakerbot Feb 9, 2023
05405e8
chore(dependencies): Autobump korkVersion (#1619)
spinnakerbot Feb 20, 2023
db9e72d
chore(dependencies): Autobump korkVersion (#1620)
spinnakerbot Feb 20, 2023
576e6ca
fix(tests): Introduce junit5 vintage engine for running junit4 test c…
j-sandy Mar 2, 2023
6c93cc6
chore(dependencies): Autobump korkVersion (#1628)
spinnakerbot Mar 13, 2023
5916b56
chore(dependencies): Autobump korkVersion (#1629)
spinnakerbot Mar 17, 2023
aff7f44
chore(dependencies): Autobump fiatVersion (#1630)
spinnakerbot Mar 24, 2023
45b65d5
chore(dependencies): Autobump spinnakerGradleVersion (#1634)
spinnakerbot Mar 29, 2023
505f955
chore(dependencies): Autobump fiatVersion (#1635)
spinnakerbot Mar 30, 2023
6e751aa
chore(gha): update to docker/login-action@v2 to stay up to date (#1636)
dbyron-sf Mar 30, 2023
9e49170
chore(dependencies): Autobump korkVersion (#1637)
spinnakerbot Mar 31, 2023
237d713
chore(dependencies): Autobump fiatVersion (#1638)
spinnakerbot Mar 31, 2023
c5ea73b
feat(gha): configure dependabot to keep github actions up to date (#1…
dbyron-sf Mar 31, 2023
19691bb
chore(deps): bump google-github-actions/auth from 0 to 1 (#1641)
dependabot[bot] Mar 31, 2023
063ec6c
chore(deps): bump actions/checkout from 2 to 3 (#1642)
dependabot[bot] Mar 31, 2023
0ddf0eb
chore(deps): bump google-github-actions/upload-cloud-storage from 0 t…
dependabot[bot] Mar 31, 2023
5c0e799
chore(deps): bump docker/build-push-action from 3 to 4 (#1640)
dependabot[bot] Mar 31, 2023
cdafe32
chore(deps): bump actions/setup-java from 2 to 3 (#1643)
dependabot[bot] Mar 31, 2023
e6753c0
chore(gha): replace action for creating github releases (#1645)
dbyron-sf Mar 31, 2023
0a32290
chore(gha): replace deprecated set-output commands with environment f…
dbyron-sf Apr 2, 2023
ff34450
chore(dependencies): Autobump korkVersion (#1647)
spinnakerbot Apr 3, 2023
722f49b
chore(dependencies): Autobump korkVersion (#1648)
spinnakerbot Apr 5, 2023
b4c8648
chore(dependencies): Autobump korkVersion (#1652)
spinnakerbot Apr 17, 2023
b185a31
fix(web/test): move GateConfigAuthenticatedRequestFilterTest out of t…
dbyron-sf May 2, 2023
fe954a1
chore(dependencies): Autobump korkVersion (#1654)
spinnakerbot May 2, 2023
e7d331a
fix(web/test): remove race in FunctionalSpec (#1657)
dbyron-sf May 12, 2023
eba6090
chore(dependencies): Autobump spinnakerGradleVersion (#1658)
spinnakerbot May 18, 2023
cd7ae85
chore(dependencies): Autobump korkVersion (#1659)
spinnakerbot May 25, 2023
0f18f9a
chore(dependencies): Autobump korkVersion (#1661)
spinnakerbot Jun 2, 2023
4ac475e
chore(dependencies): Autobump fiatVersion (#1662)
spinnakerbot Jun 5, 2023
a81d281
chore(dependencies): Autobump korkVersion (#1664)
spinnakerbot Jun 12, 2023
31296ec
chore(dependencies): Autobump spinnakerGradleVersion (#1665)
spinnakerbot Jun 13, 2023
a29ebbf
chore(build): upgrade gradle to 7.6.1 (#1660)
j-sandy Jun 13, 2023
fd09c1a
chore(dependencies): Autobump korkVersion (#1666)
spinnakerbot Jun 13, 2023
c906480
chore(dependencies): Autobump korkVersion (#1667)
spinnakerbot Jun 13, 2023
eb67d73
chore(dependencies): Autobump spinnakerGradleVersion (#1668)
spinnakerbot Jun 14, 2023
bf40abf
chore(dependencies): Autobump spinnakerGradleVersion (#1669)
spinnakerbot Jun 16, 2023
9e3c69e
cleanup(preview): remove preview feature of version ordering (VERSION…
j-sandy Jun 17, 2023
efe816a
chore(dependencies): Autobump korkVersion (#1672)
spinnakerbot Jun 26, 2023
fff621a
fix(retrofit): use OkHttpClient from Kork (#1673)
mattgogerly Jun 28, 2023
04d808c
Migration of various Groovy classes to Java (#1663)
jvz Jun 29, 2023
2aaef6b
chore(dependencies): Autobump korkVersion (#1675)
spinnakerbot Jul 3, 2023
ea7d823
chore(dependencies): Autobump korkVersion (#1676)
spinnakerbot Jul 6, 2023
8a91b53
feat(artifacts): Add new ArtifactStore endpoints (#1674)
xibz Jul 6, 2023
f8e0789
refactor(tests): convert junit4 based test cases to junit5 and clean …
j-sandy Jul 10, 2023
5914796
chore(dependencies): Autobump korkVersion (#1678)
spinnakerbot Jul 12, 2023
bdc1e9d
chore(dependencies): Autobump korkVersion (#1679)
spinnakerbot Jul 12, 2023
73a1dba
chore(dependencies): Autobump spinnakerGradleVersion (#1680)
spinnakerbot Jul 18, 2023
b3989c3
chore(cleanup): Removing un-implemented dead code (#1681)
jasonmcintosh Jul 25, 2023
311f5d1
chore(dependencies): Autobump korkVersion (#1682)
spinnakerbot Aug 10, 2023
9affd98
chore(dependencies): Autobump korkVersion (#1683)
spinnakerbot Aug 10, 2023
a72b87b
chore(dependencies): Autobump korkVersion (#1684)
spinnakerbot Aug 11, 2023
d11ae32
chore(dependencies): Autobump korkVersion (#1685)
spinnakerbot Aug 11, 2023
f57df15
feat(cdevents-webhooks) : Consume CDEvents webhook API implementatio…
rjalander Aug 14, 2023
832b9b6
chore(dependencies): Autobump korkVersion (#1692)
spinnakerbot Aug 24, 2023
a93bc10
chore(dependencies): Autobump korkVersion (#1693)
spinnakerbot Aug 24, 2023
e45a9de
fix(md): update env model to have post deploy (#1576)
osoriano Aug 28, 2023
92fa197
chore(dependencies): Autobump fiatVersion (#1698)
spinnakerbot Aug 29, 2023
7e403b0
fix(cachingFilter: Allow disabling the content caching filter (#1699)
jasonmcintosh Aug 31, 2023
853e343
chore(dependencies): Autobump korkVersion (#1706)
spinnakerbot Sep 6, 2023
d69b93d
fix(spring/profile): fix the profile property to be processed by spri…
j-sandy Sep 11, 2023
e8eea52
refactor(web/test): replace assert with assertThat and introduce expl…
j-sandy Sep 14, 2023
21837d3
chore(dependencies): Autobump korkVersion (#1711)
spinnakerbot Sep 15, 2023
0c04a78
chore(dependency): add explicit dependency of groovy-json in gate-web…
j-sandy Sep 20, 2023
346ca35
More groovy ports (#1705)
jvz Sep 20, 2023
84550ae
chore(dependencies): Autobump korkVersion (#1713)
spinnakerbot Sep 27, 2023
9f664b0
JRE 17 config for Gate (#1714)
mattgogerly Sep 29, 2023
88fafff
chore(deps): bump actions/checkout from 3 to 4 (#1716)
dependabot[bot] Oct 2, 2023
5496ff7
chore(deps): bump docker/build-push-action from 4 to 5 (#1717)
dependabot[bot] Oct 2, 2023
a360200
chore(deps): bump docker/setup-buildx-action from 2 to 3 (#1718)
dependabot[bot] Oct 2, 2023
0ab9907
chore(deps): bump docker/login-action from 2 to 3 (#1719)
dependabot[bot] Oct 2, 2023
f1ac512
chore(deps): bump docker/setup-qemu-action from 2 to 3 (#1715)
dependabot[bot] Oct 2, 2023
a18163c
chore(dependencies): Autobump korkVersion (#1720)
spinnakerbot Oct 3, 2023
77d2283
chore(dependencies): Autobump korkVersion (#1722)
spinnakerbot Oct 4, 2023
5345fe3
chore(dependencies): Autobump korkVersion (#1725)
spinnakerbot Oct 17, 2023
4412a02
refactor(test): add runtime jupiter engine and remove vintage engine …
j-sandy Oct 17, 2023
87a5dcb
chore(dependencies): Autobump korkVersion (#1726)
spinnakerbot Oct 20, 2023
f9414f8
chore(dependencies): Autobump korkVersion (#1728)
spinnakerbot Oct 30, 2023
e795655
chore(dependencies): Autobump korkVersion (#1729)
spinnakerbot Nov 2, 2023
f748e03
refactor(web): fix groovy compilation failure due to missing type con…
j-sandy Nov 6, 2023
9524bfa
chore(dependencies): Autobump korkVersion (#1733)
spinnakerbot Nov 10, 2023
b955ddd
refactor(web/test): update RedisTestConfig (#1734)
dbyron-sf Nov 10, 2023
22d3c68
chore(dependencies): Autobump korkVersion (#1735)
spinnakerbot Nov 13, 2023
27b4473
chore(upgrades): OS Upgrades (#1723)
jasonmcintosh Nov 13, 2023
d240baa
chore(dependencies): Autobump korkVersion (#1736)
spinnakerbot Nov 14, 2023
5f73a67
fix(core): RetrofitError thrown on login (#1737)
jvz Nov 15, 2023
73df737
chore(dependencies): Autobump korkVersion (#1739)
spinnakerbot Nov 20, 2023
d457399
chore(dependencies): Autobump korkVersion (#1740)
spinnakerbot Nov 20, 2023
23806cc
chore(dependencies): Autobump korkVersion (#1741)
spinnakerbot Nov 21, 2023
6e487bc
chore(dependencies): Autobump korkVersion (#1742)
spinnakerbot Nov 22, 2023
626e398
chore(dependency): upgrade kotlin to 1.5.32 in gate along with kork (…
j-sandy Nov 22, 2023
e7530c7
chore(dependencies): Autobump korkVersion (#1743)
spinnakerbot Nov 28, 2023
b83c9c4
chore(dependencies): Autobump spinnakerGradleVersion (#1745)
spinnakerbot Dec 1, 2023
3068465
chore(deps): bump google-github-actions/auth from 1 to 2 (#1746)
dependabot[bot] Dec 1, 2023
54bf338
chore(deps): bump actions/setup-java from 3 to 4 (#1747)
dependabot[bot] Dec 1, 2023
db11a65
chore(dependencies): Autobump korkVersion (#1748)
spinnakerbot Dec 5, 2023
e01e687
chore(dependencies): Autobump fiatVersion (#1749)
spinnakerbot Dec 12, 2023
ba6c51b
fix(requests): Properly handle optional request parameters (#1750)
dzhengg Dec 14, 2023
082e4d1
fix(cdevents-webhooks) : Adding support for Artifact Constraints and …
rjalander Dec 22, 2023
3767a32
chore(deps): bump google-github-actions/upload-cloud-storage from 1 t…
dependabot[bot] Jan 2, 2024
2087864
chore(dependencies): Autobump korkVersion (#1752)
spinnakerbot Jan 2, 2024
e52dc7d
chore(dependencies): Autobump korkVersion (#1753)
spinnakerbot Jan 4, 2024
428e143
chore(dependencies): Autobump korkVersion (#1754)
spinnakerbot Jan 5, 2024
4aae98d
fix: Fix git trigger issue caused by a misconfig of the object mapper…
ovidiupopa07 Feb 1, 2024
1747a62
chore(dependencies): Autobump korkVersion (#1761)
spinnakerbot Feb 2, 2024
b42b304
chore(dependencies): Autobump korkVersion (#1762)
spinnakerbot Feb 5, 2024
b681e07
chore(dependencies): Autobump korkVersion (#1764)
spinnakerbot Feb 7, 2024
b5ef035
chore(dependencies): Autobump korkVersion (#1767)
spinnakerbot Feb 19, 2024
c1dad24
chore(dependencies): Autobump korkVersion (#1768)
spinnakerbot Feb 20, 2024
f9629cc
chore(dependencies): Autobump korkVersion (#1769)
spinnakerbot Feb 22, 2024
bc9212b
chore(dependencies): Autobump korkVersion (#1770)
spinnakerbot Feb 23, 2024
3401bdc
chore(dependencies): Autobump korkVersion (#1771)
spinnakerbot Feb 27, 2024
b7a1f83
chore(dependencies): Autobump korkVersion (#1772)
spinnakerbot Mar 3, 2024
7019150
chore(dependencies): Autobump korkVersion (#1775)
spinnakerbot Mar 12, 2024
64afe5d
chore(dependencies): Autobump korkVersion (#1776)
spinnakerbot Mar 12, 2024
c7c4592
chore(dependencies): Autobump fiatVersion (#1777)
spinnakerbot Mar 12, 2024
d3d55ad
chore(dependencies): Autobump korkVersion (#1778)
spinnakerbot Mar 21, 2024
d59518c
fix(redis): circular dependencies (#1780)
nemesisOsorio Mar 26, 2024
7b3edc4
chore(deps): bump softprops/action-gh-release from 1 to 2 (#1782)
dependabot[bot] Apr 1, 2024
a438159
chore(dependencies): Autobump korkVersion (#1784)
spinnakerbot Apr 2, 2024
f108416
chore(dependency): upgrade kotlin to 1.6.21 in gate along with kork (…
j-sandy Apr 2, 2024
3383e77
refactor(redis): moving config to a new class (#1781)
nemesisOsorio Apr 2, 2024
b519b91
chore(dependencies): Autobump fiatVersion (#1785)
spinnakerbot Apr 2, 2024
cc1dca4
chore(dependencies): Autobump korkVersion (#1786)
spinnakerbot Apr 2, 2024
8d7be10
chore(dependencies): Autobump korkVersion (#1787)
spinnakerbot Apr 6, 2024
74eb564
chore(dependencies): Autobump fiatVersion (#1788)
spinnakerbot Apr 16, 2024
13382b9
chore(dependencies): Autobump korkVersion (#1791)
spinnakerbot Apr 27, 2024
8b9e8cc
chore(dependencies): Autobump fiatVersion (#1792)
spinnakerbot Apr 27, 2024
c933978
chore(dependencies): Autobump korkVersion (#1793)
spinnakerbot Apr 28, 2024
4cf1b9d
feat(build): add gate-integration module to exercise the just-built d…
dbyron-sf May 1, 2024
4809af3
feat(gha): run integration test in branch builds (#1795)
dbyron-sf May 1, 2024
0c5e4bc
feat(saml): Update SAML to use Spring Security (#1744)
jvz May 8, 2024
070213f
chore(dependencies): Autobump korkVersion (#1797)
spinnakerbot May 10, 2024
487f0d3
fix(web/test): stop leaking system properties from FunctionalSpec (#1…
dbyron-sf May 14, 2024
317cbb0
refactor(taskService): Adding a scheduled executor to retrieve the ta…
christosarvanitis May 23, 2024
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
7 changes: 7 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
version: 2
updates:
# Maintain dependencies for GitHub Actions
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "monthly"
62 changes: 54 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,27 +16,46 @@ jobs:
if: startsWith(github.repository, 'spinnaker/')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-java@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- uses: actions/setup-java@v4
with:
java-version: 11
java-version: |
17
11
distribution: 'zulu'
cache: 'gradle'
- name: Prepare build variables
id: build_variables
run: |
echo ::set-output name=REPO::${GITHUB_REPOSITORY##*/}
echo ::set-output name=VERSION::"$(git describe --tags --abbrev=0 --match="v[0-9]*" | cut -c2-)-dev-${GITHUB_REF_NAME}-$(git rev-parse --short HEAD)-$(date --utc +'%Y%m%d%H%M')"
echo REPO="${GITHUB_REPOSITORY##*/}" >> $GITHUB_OUTPUT
echo VERSION="$(git describe --tags --abbrev=0 --match='v[0-9]*' | cut -c2-)-dev-${GITHUB_REF_NAME}-$(git rev-parse --short HEAD)-$(date --utc +'%Y%m%d%H%M')" >> $GITHUB_OUTPUT
- name: Build
env:
ORG_GRADLE_PROJECT_version: ${{ steps.build_variables.outputs.VERSION }}
run: ./gradlew build --stacktrace ${{ steps.build_variables.outputs.REPO }}-web:installDist
- name: Build local slim container image for testing
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile.slim
load: true
platforms: local
tags: |
"${{ steps.build_variables.outputs.REPO }}:${{ steps.build_variables.outputs.VERSION }}-unvalidated"
- name: Test local slim container image
env:
FULL_DOCKER_IMAGE_NAME: "${{ steps.build_variables.outputs.REPO }}:${{ steps.build_variables.outputs.VERSION }}-unvalidated"
run: ./gradlew ${{ steps.build_variables.outputs.REPO }}-integration:test
- name: Login to GAR
# Only run this on repositories in the 'spinnaker' org, not on forks.
if: startsWith(github.repository, 'spinnaker/')
uses: docker/login-action@v1
uses: docker/login-action@v3
# use service account flow defined at: https://github.com/docker/login-action#service-account-based-authentication-1
with:
registry: us-docker.pkg.dev
Expand All @@ -45,10 +64,11 @@ jobs:
- name: Build and publish slim container image
# Only run this on repositories in the 'spinnaker' org, not on forks.
if: startsWith(github.repository, 'spinnaker/')
uses: docker/build-push-action@v2
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile.slim
platforms: linux/amd64,linux/arm64
push: true
tags: |
"${{ env.CONTAINER_REGISTRY }}/${{ steps.build_variables.outputs.REPO }}:${{ github.ref_name }}-latest-unvalidated"
Expand All @@ -58,11 +78,37 @@ jobs:
- name: Build and publish ubuntu container image
# Only run this on repositories in the 'spinnaker' org, not on forks.
if: startsWith(github.repository, 'spinnaker/')
uses: docker/build-push-action@v2
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile.ubuntu
platforms: linux/amd64,linux/arm64
push: true
tags: |
"${{ env.CONTAINER_REGISTRY }}/${{ steps.build_variables.outputs.REPO }}:${{ github.ref_name }}-latest-unvalidated-ubuntu"
"${{ env.CONTAINER_REGISTRY }}/${{ steps.build_variables.outputs.REPO }}:${{ steps.build_variables.outputs.VERSION }}-unvalidated-ubuntu"
- name: Build and publish slim JRE 11 container image
# Only run this on repositories in the 'spinnaker' org, not on forks.
if: startsWith(github.repository, 'spinnaker/')
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile.java11.slim
platforms: linux/amd64,linux/arm64
push: true
tags: |
"${{ env.CONTAINER_REGISTRY }}/${{ steps.build_variables.outputs.REPO }}:${{ github.ref_name }}-latest-java11-unvalidated"
"${{ env.CONTAINER_REGISTRY }}/${{ steps.build_variables.outputs.REPO }}:${{ steps.build_variables.outputs.VERSION }}-java11-unvalidated"
"${{ env.CONTAINER_REGISTRY }}/${{ steps.build_variables.outputs.REPO }}:${{ github.ref_name }}-latest-java11-unvalidated-slim"
"${{ env.CONTAINER_REGISTRY }}/${{ steps.build_variables.outputs.REPO }}:${{ steps.build_variables.outputs.VERSION }}-java11-unvalidated-slim"
- name: Build and publish ubuntu JRE 11 container image
# Only run this on repositories in the 'spinnaker' org, not on forks.
if: startsWith(github.repository, 'spinnaker/')
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile.java11.ubuntu
push: true
tags: |
"${{ env.CONTAINER_REGISTRY }}/${{ steps.build_variables.outputs.REPO }}:${{ github.ref_name }}-latest-java11-unvalidated-ubuntu"
"${{ env.CONTAINER_REGISTRY }}/${{ steps.build_variables.outputs.REPO }}:${{ steps.build_variables.outputs.VERSION }}-java11-unvalidated-ubuntu"
55 changes: 48 additions & 7 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,38 +10,79 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-java@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- uses: actions/setup-java@v4
with:
java-version: 11
java-version: |
17
11
distribution: 'zulu'
cache: 'gradle'
- name: Prepare build variables
id: build_variables
run: |
echo ::set-output name=REPO::${GITHUB_REPOSITORY##*/}
echo ::set-output name=VERSION::"$(git describe --tags --abbrev=0 --match="v[0-9]*" | cut -c2-)-dev-pr-$(git rev-parse --short HEAD)-$(date --utc +'%Y%m%d%H%M')"
echo REPO="${GITHUB_REPOSITORY##*/}" >> $GITHUB_OUTPUT
echo VERSION="$(git describe --tags --abbrev=0 --match='v[0-9]*' | cut -c2-)-dev-pr-$(git rev-parse --short HEAD)-$(date --utc +'%Y%m%d%H%M')" >> $GITHUB_OUTPUT
- name: Build
env:
ORG_GRADLE_PROJECT_version: ${{ steps.build_variables.outputs.VERSION }}
run: ./gradlew build ${{ steps.build_variables.outputs.REPO }}-web:installDist
- name: Build slim container image
uses: docker/build-push-action@v2
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile.slim
platforms: linux/amd64,linux/arm64
tags: |
"${{ env.CONTAINER_REGISTRY }}/${{ steps.build_variables.outputs.REPO }}:latest"
"${{ env.CONTAINER_REGISTRY }}/${{ steps.build_variables.outputs.REPO }}:${{ steps.build_variables.outputs.VERSION }}"
"${{ env.CONTAINER_REGISTRY }}/${{ steps.build_variables.outputs.REPO }}:latest-slim"
"${{ env.CONTAINER_REGISTRY }}/${{ steps.build_variables.outputs.REPO }}:${{ steps.build_variables.outputs.VERSION }}-slim"
- name: Build ubuntu container image
uses: docker/build-push-action@v2
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile.ubuntu
platforms: linux/amd64,linux/arm64
tags: |
"${{ env.CONTAINER_REGISTRY }}/${{ steps.build_variables.outputs.REPO }}:latest-ubuntu"
"${{ env.CONTAINER_REGISTRY }}/${{ steps.build_variables.outputs.REPO }}:${{ steps.build_variables.outputs.VERSION }}-ubuntu"
- name: Build slim JRE 11 container image
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile.java11.slim
platforms: linux/amd64,linux/arm64
tags: |
"${{ env.CONTAINER_REGISTRY }}/${{ steps.build_variables.outputs.REPO }}:latest-java11"
"${{ env.CONTAINER_REGISTRY }}/${{ steps.build_variables.outputs.REPO }}:${{ steps.build_variables.outputs.VERSION }}-java11"
"${{ env.CONTAINER_REGISTRY }}/${{ steps.build_variables.outputs.REPO }}:latest-java11-slim"
"${{ env.CONTAINER_REGISTRY }}/${{ steps.build_variables.outputs.REPO }}:${{ steps.build_variables.outputs.VERSION }}-java11-slim"
- name: Build ubuntu JRE 11 container image
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile.java11.ubuntu
platforms: linux/amd64,linux/arm64
tags: |
"${{ env.CONTAINER_REGISTRY }}/${{ steps.build_variables.outputs.REPO }}:latest-java11-ubuntu"
"${{ env.CONTAINER_REGISTRY }}/${{ steps.build_variables.outputs.REPO }}:${{ steps.build_variables.outputs.VERSION }}-java11-ubuntu"
- name: Build local slim container image for testing
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile.slim
load: true
platforms: local
tags: |
"${{ steps.build_variables.outputs.REPO }}:${{ steps.build_variables.outputs.VERSION }}"
- name: Test local slim container image
env:
FULL_DOCKER_IMAGE_NAME: "${{ steps.build_variables.outputs.REPO }}:${{ steps.build_variables.outputs.VERSION }}"
run: ./gradlew ${{ steps.build_variables.outputs.REPO }}-integration:test
70 changes: 51 additions & 19 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,18 @@ jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-java@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- uses: actions/setup-java@v4
with:
java-version: 11
java-version: |
17
11
distribution: 'zulu'
cache: 'gradle'
- name: Assemble release info
Expand All @@ -28,15 +34,15 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
. .github/workflows/release_info.sh ${{ github.event.repository.full_name }}
echo ::set-output name=CHANGELOG::$(echo -e "${CHANGELOG}")
echo ::set-output name=SKIP_RELEASE::${SKIP_RELEASE}
echo ::set-output name=IS_CANDIDATE::${IS_CANDIDATE}
echo ::set-output name=RELEASE_VERSION::${RELEASE_VERSION}
echo CHANGELOG=$(echo -e "${CHANGELOG}") >> $GITHUB_OUTPUT
echo SKIP_RELEASE="${SKIP_RELEASE}" >> $GITHUB_OUTPUT
echo IS_CANDIDATE="${IS_CANDIDATE}" >> $GITHUB_OUTPUT
echo RELEASE_VERSION="${RELEASE_VERSION}" >> $GITHUB_OUTPUT
- name: Prepare build variables
id: build_variables
run: |
echo ::set-output name=REPO::${GITHUB_REPOSITORY##*/}
echo ::set-output name=VERSION::"$(git rev-parse --short HEAD)-$(date --utc +'%Y%m%d%H%M')"
echo REPO="${GITHUB_REPOSITORY##*/}" >> $GITHUB_OUTPUT
echo VERSION="$(git rev-parse --short HEAD)-$(date --utc +'%Y%m%d%H%M')" >> $GITHUB_OUTPUT
- name: Release build
env:
ORG_GRADLE_PROJECT_version: ${{ steps.release_info.outputs.RELEASE_VERSION }}
Expand All @@ -57,23 +63,23 @@ jobs:
- name: Login to Google Cloud
# Only run this on repositories in the 'spinnaker' org, not on forks.
if: startsWith(github.repository, 'spinnaker/')
uses: 'google-github-actions/auth@v0'
uses: 'google-github-actions/auth@v2'
# use service account flow defined at: https://github.com/google-github-actions/upload-cloud-storage#authenticating-via-service-account-key-json
with:
credentials_json: '${{ secrets.GAR_JSON_KEY }}'
- name: Upload halconfig profiles to GCS
# https://console.cloud.google.com/storage/browser/halconfig
# Only run this on repositories in the 'spinnaker' org, not on forks.
if: startsWith(github.repository, 'spinnaker/')
uses: 'google-github-actions/upload-cloud-storage@v0'
uses: 'google-github-actions/upload-cloud-storage@v2'
with:
path: 'halconfig/'
destination: 'halconfig/${{ steps.build_variables.outputs.REPO }}/${{ steps.release_info.outputs.RELEASE_VERSION }}'
parent: false
- name: Login to GAR
# Only run this on repositories in the 'spinnaker' org, not on forks.
if: startsWith(github.repository, 'spinnaker/')
uses: docker/login-action@v1
uses: docker/login-action@v3
# use service account flow defined at: https://github.com/docker/login-action#service-account-based-authentication-1
with:
registry: us-docker.pkg.dev
Expand All @@ -82,10 +88,11 @@ jobs:
- name: Build and publish slim container image
# Only run this on repositories in the 'spinnaker' org, not on forks.
if: startsWith(github.repository, 'spinnaker/')
uses: docker/build-push-action@v2
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile.slim
platforms: linux/amd64,linux/arm64
push: true
tags: |
"${{ env.CONTAINER_REGISTRY }}/${{ steps.build_variables.outputs.REPO }}:${{ steps.release_info.outputs.RELEASE_VERSION }}-unvalidated"
Expand All @@ -94,23 +101,48 @@ jobs:
- name: Build and publish ubuntu container image
# Only run this on repositories in the 'spinnaker' org, not on forks.
if: startsWith(github.repository, 'spinnaker/')
uses: docker/build-push-action@v2
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile.ubuntu
platforms: linux/amd64,linux/arm64
push: true
tags: |
"${{ env.CONTAINER_REGISTRY }}/${{ steps.build_variables.outputs.REPO }}:${{ steps.release_info.outputs.RELEASE_VERSION }}-unvalidated-ubuntu"
"${{ env.CONTAINER_REGISTRY }}/${{ steps.build_variables.outputs.REPO }}:${{ steps.release_info.outputs.RELEASE_VERSION }}-${{ steps.build_variables.outputs.VERSION }}-unvalidated-ubuntu"
- name: Build and publish slim JRE 11 container image
# Only run this on repositories in the 'spinnaker' org, not on forks.
if: startsWith(github.repository, 'spinnaker/')
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile.java11.slim
platforms: linux/amd64,linux/arm64
push: true
tags: |
"${{ env.CONTAINER_REGISTRY }}/${{ steps.build_variables.outputs.REPO }}:${{ steps.release_info.outputs.RELEASE_VERSION }}-java11-unvalidated"
"${{ env.CONTAINER_REGISTRY }}/${{ steps.build_variables.outputs.REPO }}:${{ steps.release_info.outputs.RELEASE_VERSION }}-java11-unvalidated-slim"
"${{ env.CONTAINER_REGISTRY }}/${{ steps.build_variables.outputs.REPO }}:${{ steps.release_info.outputs.RELEASE_VERSION }}-${{ steps.build_variables.outputs.VERSION }}-java11-unvalidated-slim"
- name: Build and publish ubuntu JRE 11 container image
# Only run this on repositories in the 'spinnaker' org, not on forks.
if: startsWith(github.repository, 'spinnaker/')
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile.java11.ubuntu
platforms: linux/amd64,linux/arm64
push: true
tags: |
"${{ env.CONTAINER_REGISTRY }}/${{ steps.build_variables.outputs.REPO }}:${{ steps.release_info.outputs.RELEASE_VERSION }}-java11-unvalidated-ubuntu"
"${{ env.CONTAINER_REGISTRY }}/${{ steps.build_variables.outputs.REPO }}:${{ steps.release_info.outputs.RELEASE_VERSION }}-${{ steps.build_variables.outputs.VERSION }}-java11-unvalidated-ubuntu"
- name: Create release
if: steps.release_info.outputs.SKIP_RELEASE == 'false'
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.event.repository.name }} ${{ github.ref }}
body: |
${{ steps.release_info.outputs.CHANGELOG }}
draft: false
name: ${{ github.event.repository.name }} ${{ github.ref_name }}
prerelease: ${{ steps.release_info.outputs.IS_CANDIDATE }}
tag_name: ${{ github.ref }}
token: ${{ secrets.GITHUB_TOKEN }}
24 changes: 15 additions & 9 deletions .github/workflows/release_info.sh
Original file line number Diff line number Diff line change
@@ -1,20 +1,24 @@
#!/bin/bash -x

# Only look to the latest release to determine the previous tag -- this allows us to skip unsupported tag formats (like `version-1.0.0`)
export PREVIOUS_TAG=`curl --silent "https://api.github.com/repos/$1/releases/latest" | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/'`
echo "PREVIOUS_TAG=$PREVIOUS_TAG"
export NEW_TAG=${GITHUB_REF/refs\/tags\//}
NEW_TAG=${GITHUB_REF/refs\/tags\//}
export NEW_TAG
echo "NEW_TAG=$NEW_TAG"
export CHANGELOG=`git log $NEW_TAG...$PREVIOUS_TAG --oneline`
# Glob match previous tags which should be format v1.2.3. Avoids Deck's npm tagging.
PREVIOUS_TAG=$(git describe --abbrev=0 --tags "${NEW_TAG}"^ --match 'v[0-9]*')
export PREVIOUS_TAG
echo "PREVIOUS_TAG=$PREVIOUS_TAG"
CHANGELOG=$(git log "$NEW_TAG"..."$PREVIOUS_TAG" --oneline)
export CHANGELOG
echo "CHANGELOG=$CHANGELOG"

#Format the changelog so it's markdown compatible
# Format the changelog so it's markdown compatible
CHANGELOG="${CHANGELOG//$'%'/%25}"
CHANGELOG="${CHANGELOG//$'\n'/%0A}"
CHANGELOG="${CHANGELOG//$'\r'/%0D}"

# If the previous release tag is the same as this tag the user likely cut a release (and in the process created a tag), which means we can skip the need to create a release
export SKIP_RELEASE=`[[ "$PREVIOUS_TAG" = "$NEW_TAG" ]] && echo "true" || echo "false"`
SKIP_RELEASE=$([[ "$PREVIOUS_TAG" = "$NEW_TAG" ]] && echo "true" || echo "false")
export SKIP_RELEASE

# https://github.com/fsaintjacques/semver-tool/blob/master/src/semver#L5-L14
NAT='0|[1-9][0-9]*'
Expand All @@ -28,8 +32,10 @@ SEMVER_REGEX="\
(\\+${FIELD}(\\.${FIELD})*)?$"

# Used in downstream steps to determine if the release should be marked as a "prerelease" and if the build should build candidate release artifacts
export IS_CANDIDATE=`[[ $NEW_TAG =~ $SEMVER_REGEX && ! -z ${BASH_REMATCH[4]} ]] && echo "true" || echo "false"`
IS_CANDIDATE=$([[ $NEW_TAG =~ $SEMVER_REGEX && -n ${BASH_REMATCH[4]} ]] && echo "true" || echo "false")
export IS_CANDIDATE

# This is the version string we will pass to the build, trim off leading 'v' if present
export RELEASE_VERSION=`[[ $NEW_TAG =~ $SEMVER_REGEX ]] && echo "${NEW_TAG:1}" || echo "${NEW_TAG}"`
RELEASE_VERSION=$([[ $NEW_TAG =~ $SEMVER_REGEX ]] && echo "${NEW_TAG:1}" || echo "${NEW_TAG}")
export RELEASE_VERSION
echo "RELEASE_VERSION=$RELEASE_VERSION"
Loading