aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/main-branch.yml
diff options
context:
space:
mode:
authorKamen Mladenov <kamen@syndamia.com>2024-01-08 18:12:50 +0200
committerGitHub <noreply@github.com>2024-01-08 18:12:50 +0200
commit3a77d04a608d621232915e81bfa82b7565f61a35 (patch)
tree1628c47d5e948008c40dce1518140025cd7416bc /.github/workflows/main-branch.yml
parentf891b7daabf33d50913edb11dbbfb82a9216327b (diff)
parentfe29a3630d48d3e1d44287ea41682621d3a3dab0 (diff)
downloadpico-web-3a77d04a608d621232915e81bfa82b7565f61a35.tar
pico-web-3a77d04a608d621232915e81bfa82b7565f61a35.tar.gz
pico-web-3a77d04a608d621232915e81bfa82b7565f61a35.zip
Merge pull request #1 from Syndamia/dev-workflow
Updated workflows and fixed issues
Diffstat (limited to '.github/workflows/main-branch.yml')
-rw-r--r--.github/workflows/main-branch.yml17
1 files changed, 15 insertions, 2 deletions
diff --git a/.github/workflows/main-branch.yml b/.github/workflows/main-branch.yml
index d8584cb..8534344 100644
--- a/.github/workflows/main-branch.yml
+++ b/.github/workflows/main-branch.yml
@@ -1,14 +1,16 @@
-name: Push image to dockerhub
+name: Create release and push production server image to dockerhub
on:
push:
branches:
- main
jobs:
- build-and-push:
+ Build-docker-and-push:
name: Build the docker container image and push it to dockerhub
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
+ with:
+ submodules: recursive
- uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
@@ -18,3 +20,14 @@ jobs:
push: true
tags: ${{ secrets.DOCKERHUB_USERNAME }}/pico-web-server:latest
+ Release:
+ name: Make github release
+ runs-on: ubuntu-latest
+ needs: Build-docker-and-push
+ steps:
+ - uses: actions/checkout@v4
+ - uses: rymndhng/release-on-push-action@master
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ with:
+ bump_version_scheme: minor