Skip to content

[release-2.2] ci: use vsphere base templates from d2iq-base-templates vsphere folder #22

[release-2.2] ci: use vsphere base templates from d2iq-base-templates vsphere folder

[release-2.2] ci: use vsphere base templates from d2iq-base-templates vsphere folder #22

# Runs Azure tests when pull request opened, repopened or synchronized
name: Podman E2E Tests - Build AWS AMI
on:
workflow_dispatch:
pull_request:
types: [labeled, synchronize]
permissions:
contents: read
id-token: write
jobs:
rune2e:
runs-on: ubuntu-latest
continue-on-error: false
if: |
github.event_name == 'pull_request' &&
(
(github.event.action == 'labeled' && (github.event.label.name == 'runs-e2e-tests' || github.event.label.name == 'runs-aws-tests')) ||
(github.event.action == 'synchronize' && (contains(github.event.pull_request.labels.*.name, 'runs-e2e-tests') || contains(github.event.pull_request.labels.*.name, 'runs-aws-tests')))
)
steps:
- name: Checkout konvoy-image-builder repository
uses: actions/checkout@v3
with:
fetch-depth: 0
ref: ${{ github.ref }}
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version-file: 'go.mod'
cache: true
- name: Login to dockerhub Registry
uses: docker/login-action@v2
with:
username: ${{ secrets.NEXUS_USERNAME }}
password: ${{ secrets.NEXUS_PASSWORD }}
- name: Login to D2iQ's Mirror Registry
uses: docker/login-action@v2
with:
registry: ${{ secrets.D2IQ_DOCKER_MIRROR_REGISTRY}}
username: ${{ secrets.NEXUS_USERNAME }}
password: ${{ secrets.NEXUS_PASSWORD }}
- name: Setup buildkit
uses: docker/setup-buildx-action@v2
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v2
with:
role-to-assume: arn:aws:iam::${{ secrets.AWS_ACCOUNT_ID }}:role/konvoy-image-builder
aws-region: us-west-2
- name: Download GoReleaser
run: go install github.com/goreleaser/[email protected]
- name: Build snapshot
run: make build.snapshot
- name: Run E2E test for AWS centos 7.9 using podman
run: |-
KIB_CONTAINER_ENGINE=podman dist/konvoy-image-wrapper_linux_amd64_v1/konvoy-image build aws images/ami/centos-79.yaml --dry-run
env:
GITHUB_TOKEN: ${{ secrets.MESOSPHERECI_USER_TOKEN }}
KIB_CONTAINER_ENGINE: podman