This commit is contained in:
@@ -22,23 +22,24 @@ jobs:
|
|||||||
-p "8080:8080" \
|
-p "8080:8080" \
|
||||||
-p "8081:8081" \
|
-p "8081:8081" \
|
||||||
eclipse-mosquitto:latest
|
eclipse-mosquitto:latest
|
||||||
- name: Build the test image.
|
# - name: Build the test image.
|
||||||
uses: docker/build-push-action@v5
|
# uses: docker/build-push-action@v5
|
||||||
with:
|
# with:
|
||||||
context: .
|
# context: .
|
||||||
file: Dockerfile.test
|
# file: Dockerfile.test
|
||||||
platforms: |
|
# platforms: |
|
||||||
linux/arm64
|
# linux/arm64
|
||||||
linux/amd64
|
# linux/amd64
|
||||||
push: true
|
# push: true
|
||||||
tags: |
|
# tags: |
|
||||||
git.housh.dev/michael/${{ gitea.repository }}:${{ gitea.sha }}
|
# git.housh.dev/michael/${{ gitea.repository }}:${{ gitea.sha }}
|
||||||
|
- name: Build test image.
|
||||||
|
run: docker buildx build -f Dockerfile.test -t ${{ gitea.repositry }}:${{ gitea.sha }}
|
||||||
- name: Run Test
|
- name: Run Test
|
||||||
run: >
|
run: >
|
||||||
docker run --rm \
|
docker run --rm \
|
||||||
-e MOSQUITTO_SERVER=127.0.0.1 \
|
-e MOSQUITTO_SERVER=127.0.0.1 \
|
||||||
git.housh.dev/michael/${{ gitea.repository }}:${{ gitea.sha }} \
|
${{ gitea.repository }}:${{ gitea.sha }} swift test
|
||||||
swift test
|
|
||||||
- name: Cleanup.
|
- name: Cleanup.
|
||||||
if: always()
|
if: always()
|
||||||
run: docker stop mosquitto && docker rm -f mosquitto
|
run: docker stop mosquitto && docker rm -f mosquitto
|
||||||
|
|||||||
Reference in New Issue
Block a user