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