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 f8ad4d3 commit 63fe9f4Copy full SHA for 63fe9f4
.github/workflows/push-image.yml
@@ -0,0 +1,30 @@
1
+name: Push to Docker Hub
2
+
3
+on:
4
+ push:
5
+ tags:
6
+ - '*'
7
8
+env:
9
+ DOCKER_HUB_USERNAME: ${{ secrets.DOCKER_HUB_USERNAME }}
10
+ DOCKER_HUB_PASSWORD: ${{ secrets.DOCKER_HUB_PASSWORD }}
11
12
+jobs:
13
+ push-to-dockerhub:
14
+ runs-on: ubuntu-latest
15
16
+ steps:
17
+ - name: Checkout code
18
+ uses: actions/checkout@v2
19
20
+ - name: Build Docker image
21
+ run: docker build -t $DOCKER_HUB_USERNAME/django-markdown-editor:${{ github.ref }} .
22
23
+ - name: Log in to Docker Hub
24
+ uses: docker/login-action@v1
25
+ with:
26
+ username: $DOCKER_HUB_USERNAME
27
+ password: $DOCKER_HUB_PASSWORD
28
29
+ - name: Push Docker image
30
+ run: docker push $DOCKER_HUB_USERNAME/django-markdown-editor:${{ github.ref }}
0 commit comments