mirror of
https://github.com/fluxcd/flux2.git
synced 2026-02-08 00:37:27 +00:00
Add e2e tests for artifact commands
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
This commit is contained in:
parent
2f35367a7f
commit
e4fb8e75f9
1 changed files with 15 additions and 1 deletions
16
.github/workflows/e2e.yaml
vendored
16
.github/workflows/e2e.yaml
vendored
|
|
@ -9,6 +9,11 @@ on:
|
|||
jobs:
|
||||
kind:
|
||||
runs-on: ubuntu-latest
|
||||
services:
|
||||
registry:
|
||||
image: registry:2
|
||||
ports:
|
||||
- 5000:5000
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
|
|
@ -168,7 +173,16 @@ jobs:
|
|||
- name: flux delete source git
|
||||
run: |
|
||||
/tmp/flux delete source git podinfo --silent
|
||||
- name: flux oci
|
||||
- name: flux oci artifacts
|
||||
run: |
|
||||
/tmp/flux push artifact localhost:5000/fluxcd/flux:${{ github.sha }} \
|
||||
--path="./manifests" \
|
||||
--source="${{ github.repositoryUrl }}" \
|
||||
--revision="${{ github.ref }}/${{ github.sha }}"
|
||||
/tmp/flux tag artifact localhost:5000/fluxcd/flux:${{ github.sha }} \
|
||||
--tag latest
|
||||
/tmp/flux list artifact localhost:5000/fluxcd/flux
|
||||
- name: flux oci repositories
|
||||
run: |
|
||||
/tmp/flux create source oci podinfo-oci \
|
||||
--url ghcr.io/stefanprodan/manifests/podinfo \
|
||||
|
|
|
|||
Loading…
Reference in a new issue