Skip to content

Commit

Permalink
update workflow with artifacts upload
Browse files Browse the repository at this point in the history
  • Loading branch information
aarnaud committed Dec 12, 2023
1 parent e2de445 commit b25f4ae
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .argo/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,14 @@ spec:
{ "name": "unifiac", "target": "unifiac", "artifact": "bin/targets/ath79/generic/openwrt-ath79-generic-ubnt_unifiac-pro-squashfs-sysupgrade.bin" },
{ "name": "x86", "target": "x86", "artifact": "bin/targets/x86/64/openwrt-x86-64-generic-ext4-combined-efi.img.gz" }
]
ttlStrategy:
secondsAfterSuccess: 1209600
secondsAfterFailure: 1209600
archiveLogs: true
artifactRepositoryRef:
configMap: artifact-repositories
key: minio-repository
templates:
- name: entrypoint
inputs:
Expand Down Expand Up @@ -132,6 +140,7 @@ spec:
parameters:
- name: pvcName
- name: targetValue
- name: file
- name: gh-repo
- name: git-ref
metadata:
Expand Down Expand Up @@ -183,6 +192,11 @@ spec:
- name: git-tag
valueFrom:
path: /mnt/git-tag.txt
artifacts:
- name: "{{inputs.parameters.targetValue}}"
path: "/mnt/openwrt/{{ inputs.parameters.file }}"
s3:
key: "{{workflow.name}}/{{ inputs.parameters.file }}"

- name: upload
inputs:
Expand Down

0 comments on commit b25f4ae

Please sign in to comment.