(ci) container test without meta step
@@ -39,18 +39,6 @@ jobs:
with:
ref: ${{ github.event.inputs.tag }}
- - name: Docker meta
- id: meta
- uses: docker/metadata-action@v3
- with:
- images: |
- couperio/couper
- tags: |
- type=semver,pattern={{major}}.{{minor}}.{{patch}}
- type=semver,pattern={{major}}.{{minor}}
- type=edge,event=branch
- type=raw,enable=${{ github.event_name == 'workflow_dispatch' }},value=${{ github.event.inputs.tag }}
-
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
@@ -62,14 +50,13 @@ jobs:
uses: docker/build-push-action@v2
with:
context: .
- labels: ${{ steps.meta.outputs.labels }}
load: true
- tags: ${{ steps.meta.outputs.tags[0] }}
+ tags: 'couper-test-${{ github.ref }}'
- - name: Test container serves index.html # run for edge and release images
+ - name: Test container serves index.html
if: github.event_name == 'release' || github.event_name == 'workflow_dispatch' || (github.ref == 'refs/heads/master' && github.event_name == 'push')
run: |
- docker run -d --rm -p 8080:8080 '${{ steps.meta.outputs.tags[0] }}'
+ docker run -d --rm -p 8080:8080 'couper-test-${{ github.ref }}'
[[ $(curl --head --location --connect-timeout 5 --write-out %{http_code} --silent --output /dev/null http://localhost:8080/) == 200 ]]
publish:
