Merge pull request #42 from nokia/revert-38-remove-deprecated-cert-ma… #98
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: e2e | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
types: [opened, synchronize, reopened] | |
jobs: | |
go-versions: | |
name: "lookup go versions" | |
runs-on: ubuntu-latest | |
outputs: | |
go-mod-version: ${{ steps.versions.outputs.go-mod-version }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: arnested/go-version-action@v1 | |
id: versions | |
build-image: | |
name: "Build ncm-issuer image" | |
runs-on: ubuntu-latest | |
needs: go-versions | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
- run: go version | |
- name: "Build ncm-issuer image" | |
run: | | |
make docker-build | |
docker save ncm-issuer > ncm-issuer-image.tar | |
echo "ncm-issuer image built and saved to ncm-issuer-image.tar" | |
- name: "Upload ncm-issuer image" | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ncm-issuer-image | |
path: ncm-issuer-image.tar | |
retention-days: 1 | |
clientauth: | |
name: "clientauth test" | |
needs: [go-versions, build-image] | |
uses: ./.github/workflows/clientauth-test.yml | |
secrets: inherit | |
with: | |
go-version: ${{ fromJSON(needs.go-versions.outputs.go-mod-version) }} | |
image-artifact-name: ncm-issuer-image | |
caname-id: | |
name: "ca name/id tests" | |
needs: [go-versions, build-image] | |
uses: ./.github/workflows/caname-id-test.yml | |
secrets: inherit | |
with: | |
go-version: ${{ fromJSON(needs.go-versions.outputs.go-mod-version) }} | |
image-artifact-name: ncm-issuer-image | |
signer: | |
name: "signer test" | |
needs: [go-versions, build-image] | |
uses: ./.github/workflows/signer-tests.yml | |
secrets: inherit | |
with: | |
go-version: ${{ fromJSON(needs.go-versions.outputs.go-mod-version) }} | |
image-artifact-name: ncm-issuer-image | |
pkey: | |
name: "pkey tests" | |
needs: [go-versions, build-image] | |
uses: ./.github/workflows/pkey-tests.yml | |
secrets: inherit | |
with: | |
go-version: ${{ fromJSON(needs.go-versions.outputs.go-mod-version) }} | |
image-artifact-name: ncm-issuer-image | |
san: | |
name: "san test" | |
needs: [go-versions, build-image] | |
uses: ./.github/workflows/san-test.yml | |
secrets: inherit | |
with: | |
go-version: ${{ fromJSON(needs.go-versions.outputs.go-mod-version) }} | |
image-artifact-name: ncm-issuer-image |