Commit Graph

382 Commits

Author SHA1 Message Date
Rafael Breno 58fc182549 Use bash 2025-02-04 14:21:00 -03:00
Rafael Breno 8407319801 Add create-github-app-token GitHub Action 2025-02-04 11:42:31 -03:00
Brian Downs dee6c6ef17
move stats logic from command to library and update output options (#527) 2025-01-13 09:53:53 -07:00
Pedro Tashima 50bd9bbd0a
set action ref as the default version 2025-01-09 17:32:13 -03:00
Brian Downs 1d22f36213
Add stats sub command to release command (#519) 2024-12-17 10:36:25 -07:00
Pedro Tashima 4e3deebc26
Merge pull request #518 from tashima42/github-metrics
add genereate metrics cmd
2024-12-13 18:29:02 -03:00
Pedro Tashima d4dbf50b3a add genereate metrics cmd 2024-12-13 18:06:27 -03:00
Brooks Newberry f0ed6cd606
retry Attest provenance step (#515)
Signed-off-by: Brooks Newberry <brooks@newberry.com>
2024-12-11 09:02:18 -08:00
Pedro Tashima c1b42ad5fc
Merge pull request #516 from holyspectral/support-build-public-image-only
Do not check provenance when push-to-prime=false.

Signed-off-by: Sam Wang (holyspectral) <sam.wang@suse.com>
2024-12-11 13:05:40 -03:00
Sam Wang (holyspectral) 530dfbf73a publish-image: support push-to-prime=false
Do not check provenance when push-to-prime=false.

Signed-off-by: Sam Wang (holyspectral) <sam.wang@suse.com>
2024-12-11 10:50:24 -05:00
Paulo Gomes 1ddf5ae82d
publish-image: Use install-slsactl (#514)
By downloading the latest stable binary from the GH release,
this version results on faster execution (10s instead of 5min).

Signed-off-by: Paulo Gomes <paulo.gomes@suse.com>
2024-12-10 17:32:47 -03:00
Paulo Gomes f12d2334a5
publish-image: Split provenance attestation into standalone step (#513)
Signed-off-by: Paulo Gomes <paulo.gomes@suse.com>
2024-12-10 08:48:57 -03:00
Pedro Tashima ab8a845cbd
define image name (#512) 2024-12-05 16:46:51 -03:00
Pedro Tashima 63ab1b9009
bypass docker.io lock on ecm distro tools (#511)
* check if the repository is ecm distro tools

* trim the repo owner
2024-12-05 16:17:29 -03:00
Pedro Tashima e8f7bee062
use eio secrets for docker hub (#510)
* use eio secrets

* fix secrets identation
2024-12-05 15:36:47 -03:00
Paulo Gomes 524b884c04
publish-image: Add validation and lift soft failure (#509)
* publish-image: Remove soft failure and include validation

Signed-off-by: Paulo Gomes <paulo.gomes@suse.com>

* publish-image: Change publishing order
The changes aim to fail-fast and avoid the case whereby the build
results in a half-successful state.

First try to do a Prime release and if that is successful, then
attempt a public release.

Signed-off-by: Paulo Gomes <paulo.gomes@suse.com>

---------

Signed-off-by: Paulo Gomes <paulo.gomes@suse.com>
2024-12-04 14:26:44 -03:00
Pedro Tashima 7432ea7619
add docker authorization for docker operations (#503)
* add docker authorization

* return plain text creds

* get auth from env on the command

* fix error handling and var checks

* set password and username

* set password and username with flags
2024-11-28 16:55:59 -03:00
Paulo Gomes 2c2416c1c2
publish-image: Remove hard failure (#506) 2024-11-26 17:10:14 +00:00
Paulo Gomes 45fe661ce4
publish-image: Add SLSA v1 spec provenance to Prime (#505)
Use slsactl CLI to convert the BuildKit SLSA v0.2 provenance into SLSA v1,
based on the [buildkit-gha/v1](https://github.com/rancherlabs/slsactl/tree/main/buildtypes/buildkit-gha/v1) builder type.
The attestation is then pushed to the Prime registry.

Signed-off-by: Paulo Gomes <paulo.gomes@suse.com>
2024-11-19 14:10:14 -03:00
Pedro Tashima 2115055d9d
remove status check from rancher tag and shellcheck action (#502)
* remove status check from rancher

* fix identation

* remove shellcheck
2024-11-11 15:56:15 -03:00
Pedro Tashima fa12d7482e
add rancher rc components script (#501)
* add rancher rc deps

* add rc print

* add usage and example

* update format and add usage
2024-11-11 14:33:12 -03:00
Rafael 24ef1d010b
Add PR URL echo (#493)
* Add URL echo

* go mod tidy
2024-10-18 16:34:53 -03:00
Brooks Newberry 3da202f36d
export IID_FILE (#492) 2024-10-18 11:07:05 -07:00
Rafael 515f16e6ec
[feature] Rancher UI dashboard commands (#474)
* add dashboard release-notes gen

* add tag dashboard

* add rancher dashboard cmd
2024-10-16 12:02:32 -03:00
Pedro Tashima a53daa848e
remove logs and increase timeouts on generate missing images list (#490)
* remove logs and increase timeouts

* fix indent
2024-10-03 12:49:05 -03:00
Pedro Tashima dd525f030e
remove unused actions (#489) 2024-10-01 17:29:14 -03:00
Pedro Tashima 8b1423c553
Refactor tag rancher command (#482)
* remove debug releases and unused configs, move the skip status check to a flag

* use the release html url

* move logs to cli code and fix config view
2024-09-25 18:20:33 -03:00
Brian Downs 871cf8d395
update rke2 release docs (#484) 2024-09-24 11:25:04 -07:00
Pedro Tashima 1e75437ff1
add generate images-sync-config command (#472)
* add generate images-sync-config command

* use image len

* add generate config path

* add source registry to config

* use backticks instead of double quotes

* add spaces
2024-08-28 14:23:58 -03:00
Dan P. 141c6a0b9c
Ensure step conditions are respected (#473) 2024-08-28 10:32:45 -03:00
Nicholas openSUSE Software Engineer 6ccddb4953
Merge pull request #468 from nicholasSUSE/release-charts-push
Release charts push
2024-08-26 18:41:28 -03:00
nicholasSSUSE 3668c037a4 fixes after brian review 2024-08-26 18:38:02 -03:00
Pedro Tashima 21af474500
fix artifacts index generation using s3 sdk (#470)
* ignore validate if the command is edit

* validate omitempty and add aws creds

* list s3 objects

* remove prints

* update keys
2024-08-23 20:02:05 -03:00
Pedro Tashima 207fd7dd44
fix registry urls on generate missing images list and adds registry info to digests (#467)
* fix registry urls

* add verbose output and custom log

* add registry to digests file

* use fmt and not log

* remove explicit returns

* reorder imports

* remove logs
2024-08-19 12:15:29 -03:00
nicholasSSUSE 4639fd1dfa small fix at default PR description 2024-08-12 19:20:02 -03:00
nicholasSSUSE a3658ada61 limiting amount of commits to inspect 2024-08-12 19:00:35 -03:00
nicholasSSUSE a5c65af4b5 updating comments for push() func 2024-08-12 18:52:16 -03:00
nicholasSSUSE f146a0e744 using root debug flag 2024-08-12 18:45:12 -03:00
nicholasSSUSE 113b2d14aa updating arg of list.go to match release push and release update charts 2024-08-12 17:14:38 -03:00
nicholasSSUSE d25f35841e updating docs 2024-08-12 17:14:07 -03:00
nicholasSSUSE f7eb14d8f5 fixes 2024-08-12 14:13:11 -03:00
nicholasSSUSE dbdfdfece7 adding user input function 2024-08-12 14:13:11 -03:00
nicholasSSUSE 04d0dee9d6 updating arguments.go with new branch values and refactoring 2024-08-12 14:13:11 -03:00
nicholasSSUSE c55da349d0 adding repository specific functions for handling go-git and ghClient 2024-08-12 14:13:11 -03:00
nicholasSSUSE ba88a1845e updating release/charts with push execution and pr creation 2024-08-12 14:13:11 -03:00
nicholasSSUSE 4c808bccdf adding release push charts command 2024-08-12 14:13:11 -03:00
Nicholas openSUSE Software Engineer 5f7ffe5b63
Merge pull request #464 from nicholasSUSE/release-charts-update-cmd
Release charts update cmd
2024-08-12 14:12:19 -03:00
nicholasSSUSE cc7ab671b5 removing catch-all errors 2024-08-09 20:49:42 -03:00
nicholasSSUSE ea7a5c9f1f removing log package in favor of fmt and os.Exit(1) 2024-08-09 20:46:48 -03:00
nicholasSSUSE cac4e42497 changing naming strategy from arguments.go -> chart_management.go 2024-08-09 20:40:12 -03:00