Skip to content

Commit 9efbaf8

Browse files
committed
Remove temporary workflow updates
1 parent 2be63e7 commit 9efbaf8

File tree

1 file changed

+29
-4
lines changed

1 file changed

+29
-4
lines changed

.github/workflows/platform-docker-publish-all-features-image.yml

+29-4
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ on:
44
push:
55
tags:
66
- '*'
7-
branches:
8-
- chore/integrate-ldap
97

108
env:
119
FLAGSMITH_SAML_REVISION: v1.1.0
@@ -14,9 +12,23 @@ env:
1412
FLAGSMITH_AUTH_CONTROLLER_REVISION: v0.0.1
1513

1614
jobs:
15+
start-runner:
16+
runs-on: ubuntu-latest
17+
outputs:
18+
runner-label: ${{ steps.start.outputs.runner-label }}
19+
instance-id: ${{ steps.start.outputs.instance-id }}
20+
steps:
21+
- uses: Flagsmith/actions/ec2-runner/[email protected]
22+
id: start
23+
with:
24+
github-access-token: ${{ secrets.GH_RUNNER_TOKEN }}
25+
aws-access-key-id: ${{ vars.AWS_ACCESS_KEY_ID_EC2_RUNNER }}
26+
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY_EC2_RUNNER }}
27+
1728
build-dockerhub:
1829
name: Platform Publish Docker Image
19-
runs-on: matt
30+
needs: [start-runner]
31+
runs-on: ${{ needs.start-runner.outputs.runner-label }}
2032

2133
steps:
2234
- name: Cloning repo
@@ -104,10 +116,23 @@ jobs:
104116
with:
105117
platforms: linux/amd64,linux/arm64
106118
file: Dockerfile
107-
push: false
119+
push: true
108120
tags: ${{ steps.meta.outputs.tags }}
109121
context: .
110122
build-args: |
111123
SAML_INSTALLED=1
112124
POETRY_OPTS=--with saml,auth-controller,ldap
113125
GH_TOKEN=${{ secrets.GH_PRIVATE_ACCESS_TOKEN }}
126+
127+
stop-runner:
128+
needs: [start-runner, build-dockerhub]
129+
if: ${{ always() }}
130+
runs-on: ubuntu-latest
131+
steps:
132+
- uses: Flagsmith/actions/ec2-runner/[email protected]
133+
with:
134+
github-access-token: ${{ secrets.GH_RUNNER_TOKEN }}
135+
aws-access-key-id: ${{ vars.AWS_ACCESS_KEY_ID_EC2_RUNNER }}
136+
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY_EC2_RUNNER }}
137+
runner-label: ${{ needs.start-runner.outputs.runner-label }}
138+
instance-id: ${{ needs.start-runner.outputs.instance-id }}

0 commit comments

Comments
 (0)