We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3846097 commit fb4a1ffCopy full SHA for fb4a1ff
.github/workflows/test.yml
@@ -0,0 +1,31 @@
1
+name: test
2
+
3
+on:
4
+ push:
5
+ branches:
6
+ - main
7
+ workflow_dispatch:
8
9
+env:
10
+ DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
11
+ DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
12
+ DOCKER_REPO: doocs/leetcode
13
14
15
+jobs:
16
+ deploy:
17
+ runs-on: ubuntu-latest
18
+ steps:
19
+ - uses: actions/checkout@v4
20
+ with:
21
+ ref: gh-pages
22
+ path: site
23
+ - name: Build Docker Image
24
+ run: |
25
+ docker build -t ${{ env.DOCKER_REPO }}:latest .
26
+ - name: Login to DockerHub
27
28
+ echo $DOCKER_PASSWORD | docker login -u $DOCKER_USERNAME --password-stdin
29
+ - name: Push Docker Image to DockerHub
30
31
+ docker push ${{ env.DOCKER_REPO }}:latest
0 commit comments