Skip to content

Commit

Permalink
Update test action (nginx#3189)
Browse files Browse the repository at this point in the history
Co-authored-by: tomasohaodha <[email protected]>
  • Loading branch information
2 people authored and coolbry95 committed Nov 18, 2022
1 parent a4b299e commit 4155595
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/actions/smoke-tests/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,23 +33,23 @@ runs:
using: composite
steps:
- name: Fetch Cached Artifacts
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ${{ github.workspace }}/dist
key: nginx-ingress-${{ github.run_id }}-${{ github.run_number }}-single

- name: Ingress type
id: ingress-type
run: |
echo ::set-output name=name::nginx${{ contains(inputs.image, 'plus') && '-plus' || '' }}-ingress
echo ::set-output name=tag::${{ inputs.image }}${{ contains(inputs.image, 'nap') && '-dos' || '' }}-${{ github.sha }}
echo "name=nginx${{ contains(inputs.image, 'plus') && '-plus' || '' }}-ingress" >> $GITHUB_OUTPUT
echo "tag=${{ inputs.image }}${{ contains(inputs.image, 'nap') && '-dos' || '' }}-${{ github.sha }}" >> $GITHUB_OUTPUT
shell: bash

- name: Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v2

- name: Build ${{ inputs.image }} Container
uses: docker/build-push-action@v2
uses: docker/build-push-action@v3
with:
file: build/Dockerfile
context: '.'
Expand All @@ -68,7 +68,7 @@ runs:
${{ contains(inputs.image, 'plus') && format('"nginx-repo.key={0}"', inputs.nginx-key) || '' }}
- name: Build Test-Runner Container
uses: docker/build-push-action@v2
uses: docker/build-push-action@v3
with:
file: tests/docker/Dockerfile
context: '.'
Expand All @@ -88,8 +88,8 @@ runs:
marker="${{ inputs.marker }}"
sanitized_marker="${marker// /_}"
name="${sanitized_marker:-${{ inputs.k8s-version }}}"
echo ::set-output name=cluster_ip::$(docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' ${{ github.run_id }}-control-plane)
echo ::set-output name=cluster::$(echo nginx-${{ inputs.image }}-$name)
echo "cluster_ip=$(docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' ${{ github.run_id }}-control-plane)" >> $GITHUB_OUTPUT
echo "cluster=$(echo nginx-${{ inputs.image }}-$name)" >> $GITHUB_OUTPUT
shell: bash

- name: Setup Kubeconfig
Expand Down

0 comments on commit 4155595

Please sign in to comment.