tiny fix in the CI pipeline #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and Package Docker PDF Server | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Build Docker Image | |
run: | | |
docker build --platform linux/amd64 -t ghcr.io/ash0ne/docker-pdf-server:latest . | |
- name: Start app and Test Docker Image | |
run: | | |
docker run -d -e DOCKER_PDF_SERVER_USER=test-user \ | |
-e DOCKER_PDF_SERVER_PASSWORD=test-password \ | |
-p 5000:5000 ghcr.io/ash0ne/docker-pdf-server:latest | |
sh smoke_test.sh |