aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSyndamia <kamen@syndamia.com>2024-01-07 19:08:46 +0200
committerSyndamia <kamen@syndamia.com>2024-01-07 19:08:46 +0200
commit13cbae6891ad265a4c3f0fdb5510f83285270ea9 (patch)
tree06fe28f3e0f64eb091fb875ed558ae8496730988
parent9b7cd4a3f8b70adb5f02a733506c2ffd4d67d311 (diff)
downloadpico-web-13cbae6891ad265a4c3f0fdb5510f83285270ea9.tar
pico-web-13cbae6891ad265a4c3f0fdb5510f83285270ea9.tar.gz
pico-web-13cbae6891ad265a4c3f0fdb5510f83285270ea9.zip
(workflows) Added workflow for pushing to dockerhub
-rw-r--r--.github/workflows/main-branch.yml20
1 files changed, 20 insertions, 0 deletions
diff --git a/.github/workflows/main-branch.yml b/.github/workflows/main-branch.yml
new file mode 100644
index 0000000..d8584cb
--- /dev/null
+++ b/.github/workflows/main-branch.yml
@@ -0,0 +1,20 @@
+name: Push image to dockerhub
+on:
+ push:
+ branches:
+ - main
+jobs:
+ build-and-push:
+ name: Build the docker container image and push it to dockerhub
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v4
+ - uses: docker/login-action@v3
+ with:
+ username: ${{ secrets.DOCKERHUB_USERNAME }}
+ password: ${{ secrets.DOCKERHUB_TOKEN }}
+ - uses: docker/build-push-action@v5
+ with:
+ push: true
+ tags: ${{ secrets.DOCKERHUB_USERNAME }}/pico-web-server:latest
+