Skip to content

Commit 018968b

Browse files
committed
Trying to add secret ssl key and cert
1 parent 6033bdd commit 018968b

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,21 @@ jobs:
1212

1313
steps:
1414
- uses: actions/checkout@v3
15+
with:
16+
1517
- name: Login Dockerhub
1618
env:
1719
DOCKER_USERNAME: ${{secrets.DOCKER_USERNAME}}
1820
DOCKER_PASSWORD: ${{secrets.DOCKER_PASSWORD}}
1921
run: docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD
22+
23+
- name: Build Docker Container
24+
uses: docker/build-push-action@v6
25+
with:
26+
context: ./Frontend
27+
tags: thomastejedor/quiz-slayer-env:latest
28+
secrets: |
29+
"PRIVATE_KEY=${{secrets.PRIVATE_SSL_KEY}}"
30+
"SSL_CERT=${{secrets.SSL_CERT}}"
2031
21-
- name: Build the Docker image
22-
run: docker build -t quiz-slayer-env Frontend/.
23-
- name: Push Docker image
24-
run: docker push thomastejedor/quiz-slayer-env:latest
2532

0 commit comments

Comments
 (0)