-
Notifications
You must be signed in to change notification settings - Fork 29
98 lines (98 loc) · 5.84 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
name: ECM Distro Tools Release
on:
push:
tags:
- "v*"
jobs:
release:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build ECM Distro Tools
run: |
make all
make test
- name: Publish Binaries
uses: SierraSoftworks/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
overwrite: 'true'
files: |
${{ github.workspace }}/bin/bootstrap_hash
${{ github.workspace }}/bin/check_for_k8s_release
${{ github.workspace }}/bin/cut_k3s_release_issue
${{ github.workspace }}/bin/cut_rke2_release_issue
${{ github.workspace }}/bin/delete_release_assets
${{ github.workspace }}/bin/rancher_image_scan
${{ github.workspace }}/bin/tag_image_build_k8s_release
${{ github.workspace }}/bin/tag_rke2_packaging_release
${{ github.workspace }}/bin/tag_rke2_release
${{ github.workspace }}/bin/update_go
${{ github.workspace }}/bin/utility_index
${{ github.workspace }}/bin/verify_rke2_charts
${{ github.workspace }}/bin/weekly_report
${{ github.workspace }}/cmd/backport/bin/backport-darwin-amd64
${{ github.workspace }}/cmd/backport/bin/backport-darwin-arm64
${{ github.workspace }}/cmd/backport/bin/backport-freebsd-amd64
${{ github.workspace }}/cmd/backport/bin/backport-freebsd-arm64
${{ github.workspace }}/cmd/backport/bin/backport-linux-amd64
${{ github.workspace }}/cmd/backport/bin/backport-linux-arm64
${{ github.workspace }}/cmd/gen_release_notes/bin/gen_release_notes-darwin-amd64
${{ github.workspace }}/cmd/gen_release_notes/bin/gen_release_notes-darwin-arm64
${{ github.workspace }}/cmd/gen_release_notes/bin/gen_release_notes-freebsd-amd64
${{ github.workspace }}/cmd/gen_release_notes/bin/gen_release_notes-freebsd-arm64
${{ github.workspace }}/cmd/gen_release_notes/bin/gen_release_notes-linux-amd64
${{ github.workspace }}/cmd/gen_release_notes/bin/gen_release_notes-linux-arm64
${{ github.workspace }}/cmd/gen_release_report/bin/gen_release_report-darwin-amd64
${{ github.workspace }}/cmd/gen_release_report/bin/gen_release_report-darwin-arm64
${{ github.workspace }}/cmd/gen_release_report/bin/gen_release_report-freebsd-amd64
${{ github.workspace }}/cmd/gen_release_report/bin/gen_release_report-freebsd-arm64
${{ github.workspace }}/cmd/gen_release_report/bin/gen_release_report-linux-amd64
${{ github.workspace }}/cmd/gen_release_report/bin/gen_release_report-linux-arm64
${{ github.workspace }}/cmd/k3s_release/bin/k3s_release-darwin-amd64
${{ github.workspace }}/cmd/k3s_release/bin/k3s_release-darwin-arm64
${{ github.workspace }}/cmd/k3s_release/bin/k3s_release-freebsd-amd64
${{ github.workspace }}/cmd/k3s_release/bin/k3s_release-freebsd-arm64
${{ github.workspace }}/cmd/k3s_release/bin/k3s_release-linux-amd64
${{ github.workspace }}/cmd/k3s_release/bin/k3s_release-linux-arm64
${{ github.workspace }}/cmd/rancher_release/bin/rancher_release-darwin-amd64
${{ github.workspace }}/cmd/rancher_release/bin/rancher_release-darwin-arm64
${{ github.workspace }}/cmd/rancher_release/bin/rancher_release-freebsd-amd64
${{ github.workspace }}/cmd/rancher_release/bin/rancher_release-freebsd-arm64
${{ github.workspace }}/cmd/rancher_release/bin/rancher_release-linux-amd64
${{ github.workspace }}/cmd/rancher_release/bin/rancher_release-linux-arm64
${{ github.workspace }}/cmd/rke2_release/bin/rke2_release-darwin-amd64
${{ github.workspace }}/cmd/rke2_release/bin/rke2_release-darwin-arm64
${{ github.workspace }}/cmd/rke2_release/bin/rke2_release-freebsd-amd64
${{ github.workspace }}/cmd/rke2_release/bin/rke2_release-freebsd-arm64
${{ github.workspace }}/cmd/rke2_release/bin/rke2_release-linux-amd64
${{ github.workspace }}/cmd/rke2_release/bin/rke2_release-linux-arm64
${{ github.workspace }}/cmd/test_coverage/bin/test_coverage-darwin-amd64
${{ github.workspace }}/cmd/test_coverage/bin/test_coverage-darwin-arm64
${{ github.workspace }}/cmd/test_coverage/bin/test_coverage-freebsd-amd64
${{ github.workspace }}/cmd/test_coverage/bin/test_coverage-freebsd-arm64
${{ github.workspace }}/cmd/test_coverage/bin/test_coverage-linux-amd64
${{ github.workspace }}/cmd/test_coverage/bin/test_coverage-linux-arm64
${{ github.workspace }}/cmd/upstream_go_version/bin/upstream_go_version-darwin-amd64
${{ github.workspace }}/cmd/upstream_go_version/bin/upstream_go_version-darwin-arm64
${{ github.workspace }}/cmd/upstream_go_version/bin/upstream_go_version-freebsd-amd64
${{ github.workspace }}/cmd/upstream_go_version/bin/upstream_go_version-freebsd-arm64
${{ github.workspace }}/cmd/upstream_go_version/bin/upstream_go_version-linux-amd64
${{ github.workspace }}/cmd/upstream_go_version/bin/upstream_go_version-linux-arm64
${{ github.workspace }}/cmd/standup/bin/standup
${{ github.workspace }}/ecm-distro-tools.tgz
- name: Docker Hub Login
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v4
with:
push: true
tags: rancher/ecm-distro-tools:${{ github.ref_name }}
file: ./Dockerfile
context: .