-
Notifications
You must be signed in to change notification settings - Fork 29
38 lines (36 loc) · 1.2 KB
/
release.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
name: ECM Distro Tools Release
on:
push:
tags:
- "v*"
jobs:
release:
permissions:
contents: write # Pushing artifacts to the new release.
id-token: write # OIDC for cosign's use in actions/publish-image.
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build ECM Distro Tools
run: |
export VERSION=${GITHUB_REF_NAME}
make test
make package-binaries
- name: Publish Binaries
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh release upload -R ${{ github.repository }} ${{ github.ref_name }} ${{ github.workspace }}/dist/* --clobber
- name: Publish manifest
uses: ./actions/publish-image
with:
image: ecm-distro-tools
tag: ${{ github.ref_name }}
platforms: ${{ matrix.platforms }}
push-to-public: false
# This project is for internal use only, therefore we can treat
# Docker as its Prime registry.
prime-registry: docker.io
prime-repo: rancher
prime-username: ${{ secrets.DOCKERHUB_USERNAME }}
prime-password: ${{ secrets.DOCKERHUB_TOKEN }}