Trying to add secret ssl key and cert #4
This file contains hidden or 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: Docker Image CI | ||
| on: | ||
| push: | ||
| branches: ["deploy"] | ||
| jobs: | ||
| build: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v3 | ||
| with: | ||
| - name: Login Dockerhub | ||
| env: | ||
| DOCKER_USERNAME: ${{secrets.DOCKER_USERNAME}} | ||
| DOCKER_PASSWORD: ${{secrets.DOCKER_PASSWORD}} | ||
| run: docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD | ||
| - name: Build Docker Container | ||
| uses: docker/build-push-action@v6 | ||
| with: | ||
| context: ./Frontend | ||
| tags: thomastejedor/quiz-slayer-env:latest | ||
| secrets: | | ||
| "PRIVATE_KEY=${{secrets.PRIVATE_SSL_KEY}}" | ||
| "SSL_CERT=${{secrets.SSL_CERT}}" | ||