diff options
| Commit | 13cbae6891ad265a4c3f0fdb5510f83285270ea9 (patch) | |
|---|---|---|
| Author | 2024-01-07 19:08:46 +0200 | |
| Committer | 2024-01-07 19:08:46 +0200 | |
| Files | 06fe28f3e0f64eb091fb875ed558ae8496730988 /.github/workflows | |
| pico-web-13cbae6891ad265a4c3f0fdb5510f83285270ea9.tar pico-web-13cbae6891ad265a4c3f0fdb5510f83285270ea9.tar.gz pico-web-13cbae6891ad265a4c3f0fdb5510f83285270ea9.zip | ||
| Parent | 9b7cd4a3f8b70adb5f02a733506c2ffd4d67d311 (diff) | |
(workflows) Added workflow for pushing to dockerhub
1 files changed, 20 insertions, 0 deletions
| -rw-r--r-- | .github/workflows/main-branch.yml | 20 |
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 + |
