Skip to content

Commit 9df9096

Browse files
authored
Merge branch 'master' into dependabot/bundler/aws-partitions-1.1260.0
2 parents 718caea + dc5ac99 commit 9df9096

4 files changed

Lines changed: 29 additions & 21 deletions

File tree

.github/workflows/campfire-notify.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Post commit info to Campfire
1+
name: Campfire Notifications
22

33
on:
44
push:
@@ -9,10 +9,10 @@ permissions:
99

1010
jobs:
1111
post-commit-info:
12-
if: secrets.CAMPFIRE_MESSAGES_URL != ''
1312
runs-on: ubuntu-latest
1413
steps:
1514
- name: Post commit info to Campfire
15+
if: secrets.CAMPFIRE_MESSAGES_URL != ''
1616
continue-on-error: true
1717
uses: shane-lamb/campfire-notify-action@df63cf73810147306276e281bedccf71c1519caf # v1.1.6
1818
with:

.github/workflows/docker-containers.yml

Lines changed: 24 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
---
2-
# Fork PR builds run only when a maintainer adds the "docker" label. Login and push
3-
# are disabled for fork PRs; labeled fork PRs still execute untrusted Dockerfiles.
4-
# Skipped entirely when DOCKER_USERNAME is not configured (e.g. forks).
51
name: Docker Container Builds
62

73
on:
@@ -31,8 +27,24 @@ permissions:
3127
env:
3228
DOCKER_PUSH: true
3329
jobs:
30+
docker-configured:
31+
runs-on: ubuntu-latest
32+
outputs:
33+
enabled: ${{ steps.check.outputs.enabled }}
34+
steps:
35+
- id: check
36+
env:
37+
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
38+
run: |
39+
if [ -n "${DOCKER_USERNAME}" ]; then
40+
echo "enabled=true" >> "$GITHUB_OUTPUT"
41+
else
42+
echo "enabled=false" >> "$GITHUB_OUTPUT"
43+
fi
44+
3445
pwpush-container:
35-
if: secrets.DOCKER_USERNAME != '' && ((github.event.label && github.event.label.name == 'docker') || github.event_name != 'pull_request')
46+
needs: docker-configured
47+
if: needs.docker-configured.outputs.enabled == 'true' && ((github.event.label && github.event.label.name == 'docker') || github.event_name != 'pull_request')
3648
runs-on: ubuntu-latest
3749
steps:
3850
- name: Checkout
@@ -83,7 +95,7 @@ jobs:
8395
type=gha,mode=max
8496
8597
- name: Post job failure details to Campfire
86-
if: failure() && github.ref == 'refs/heads/master'
98+
if: failure() && secrets.CAMPFIRE_MESSAGES_URL != '' && github.ref == 'refs/heads/master'
8799
continue-on-error: true
88100
uses: shane-lamb/campfire-notify-action@df63cf73810147306276e281bedccf71c1519caf # v1.1.6
89101
with:
@@ -92,8 +104,8 @@ jobs:
92104

93105

94106
public-gateway-container:
95-
if: secrets.DOCKER_USERNAME != '' && ((github.event.label && github.event.label.name == 'docker') || github.event_name != 'pull_request')
96-
needs: pwpush-container
107+
needs: [docker-configured, pwpush-container]
108+
if: needs.docker-configured.outputs.enabled == 'true' && ((github.event.label && github.event.label.name == 'docker') || github.event_name != 'pull_request')
97109
runs-on: ubuntu-latest
98110
steps:
99111
- name: Checkout
@@ -149,16 +161,16 @@ jobs:
149161
type=gha,mode=max
150162
151163
- name: Post job failure details to Campfire
152-
if: failure() && github.ref == 'refs/heads/master'
164+
if: failure() && secrets.CAMPFIRE_MESSAGES_URL != '' && github.ref == 'refs/heads/master'
153165
continue-on-error: true
154166
uses: shane-lamb/campfire-notify-action@df63cf73810147306276e281bedccf71c1519caf # v1.1.6
155167
with:
156168
messages_url: ${{ secrets.CAMPFIRE_MESSAGES_URL }}
157169
template: job_failed
158170

159171
worker-container:
160-
if: secrets.DOCKER_USERNAME != '' && ((github.event.label && github.event.label.name == 'docker') || github.event_name != 'pull_request')
161-
needs: pwpush-container
172+
needs: [docker-configured, pwpush-container]
173+
if: needs.docker-configured.outputs.enabled == 'true' && ((github.event.label && github.event.label.name == 'docker') || github.event_name != 'pull_request')
162174
runs-on: ubuntu-latest
163175
steps:
164176
- name: Checkout
@@ -214,7 +226,7 @@ jobs:
214226
type=gha,mode=max
215227
216228
- name: Post job failure details to Campfire
217-
if: failure() && github.ref == 'refs/heads/master'
229+
if: failure() && secrets.CAMPFIRE_MESSAGES_URL != '' && github.ref == 'refs/heads/master'
218230
continue-on-error: true
219231
uses: shane-lamb/campfire-notify-action@df63cf73810147306276e281bedccf71c1519caf # v1.1.6
220232
with:

.github/workflows/hatchbox-deploy.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
---
2-
# Deploy the OSS demo/production Hatchbox app when a release tag is pushed.
3-
# Add HATCHBOX_DEPLOY_KEY to repo secrets (App → Repository tab in Hatchbox.io).
41
name: Hatchbox Deploy
52

63
on:
@@ -13,10 +10,10 @@ permissions:
1310

1411
jobs:
1512
deploy:
16-
if: secrets.HATCHBOX_DEPLOY_KEY != ''
1713
runs-on: ubuntu-latest
1814
steps:
1915
- name: Deploy to Hatchbox
16+
if: secrets.HATCHBOX_DEPLOY_KEY != ''
2017
uses: hatchboxio/github-hatchbox-deploy-action@3bbadafe51e89bbf29fd3932bd84534f4fc9a00c # v2
2118
with:
2219
deploy_key: ${{ secrets.HATCHBOX_DEPLOY_KEY }}

.github/workflows/lint-helm.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
---
2-
name: Lint and Test Charts
1+
name: Lint and Test Helm Charts
32

43
on: pull_request
54

@@ -52,7 +51,7 @@ jobs:
5251
run: ct install --config ./ct.yaml --target-branch "$TARGET_BRANCH"
5352

5453
- name: Post job failure details to Campfire
55-
if: failure() && github.base_ref == env.TARGET_BRANCH
54+
if: failure() && secrets.CAMPFIRE_MESSAGES_URL != '' && github.base_ref == env.TARGET_BRANCH
5655
continue-on-error: true
5756
uses: shane-lamb/campfire-notify-action@df63cf73810147306276e281bedccf71c1519caf # v1.1.6
5857
with:

0 commit comments

Comments
 (0)