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 ab51d18 commit 007879cCopy full SHA for 007879c
.github/workflows/build-and-push-to-dockerhub.yml
@@ -0,0 +1,24 @@
1
+name: Build and Push to Docker Hub
2
+
3
+on:
4
+ workflow_dispatch:
5
+# on:
6
+# push:
7
+# branches:
8
+# - main # Replace with your branch name
9
10
+jobs:
11
+ build-and-push:
12
+ runs-on: ubuntu-latest
13
14
+ steps:
15
+ - name: Checkout code
16
+ uses: actions/checkout@v2
17
18
+ - name: Login to Docker Hub
19
+ run: echo ${{ secrets.DOCKERHUB_TOKEN }} | docker login -u ${{ secrets.DOCKERHUB_USERNAME }} --password-stdin
20
21
+ - name: Build and push Docker image
22
+ run: |
23
+ docker build -t arc/service:latest .
24
+ docker push arc/service:latest
0 commit comments