Skip to content

Commit 379729c

Browse files
committed
ci: Extract tag from GITHUB_REF
1 parent d14492b commit 379729c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/release.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,15 @@ jobs:
1111
- uses: actions/checkout@v2
1212
- name: Setup Kustomize
1313
uses: ./.github/actions/kustomize
14+
- name: Get version
15+
id: get_version
16+
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
1417
- name: Generate release asset
1518
run: |
1619
mkdir -p config/release
1720
cp config/default/* config/release
1821
cd config/release
19-
kustomize edit set image fluxcd/source-controller=fluxcd/source-controller:${{ github.ref }}
22+
kustomize edit set image fluxcd/source-controller=fluxcd/source-controller:${{ steps.get_version.outputs.VERSION }}
2023
kustomize build . > source-controller.yaml
2124
- name: Push image
2225
uses: docker/build-push-action@v1

0 commit comments

Comments
 (0)