-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (38 loc) · 1.25 KB
/
mike-test-build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: mike test build
on:
push:
branches:
- fix-docker-publish
jobs:
go-versions:
uses: ./.github/workflows/go-versions.yml
release-ldcli:
permissions:
id-token: write # Needed to obtain Docker tokens
contents: write # Needed to upload release artifacts
needs: [ go-versions ]
runs-on: ubuntu-latest
outputs:
hashes: ${{ steps.publish.outputs.hashes }}
steps:
- uses: actions/checkout@v4
name: Checkout
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: ${{ needs.go-versions.outputs.latest }}
- uses: launchdarkly/gh-actions/actions/[email protected]
name: 'Get Docker token'
with:
aws_assume_role: ${{ vars.AWS_ROLE_ARN }}
ssm_parameter_pairs: '/global/services/docker/public/username = DOCKER_USERNAME, /global/services/docker/public/token = DOCKER_TOKEN'
- uses: ./.github/actions/publish
id: publish
with:
dry-run: 'true'
snapshot: 'true'
token: ${{ secrets.GITHUB_TOKEN }}
homebrew-gh-secret: ${{secrets.HOMEBREW_DEPLOY_KEY}}
tag: ${{ needs.release-please.outputs.tag_name }}