aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/main-branch.yml
diff options
context:
space:
mode:
authorKamen Mladenov <kamen@syndamia.com>2024-01-08 20:20:32 +0200
committerGitHub <noreply@github.com>2024-01-08 20:20:32 +0200
commit9aca1ce669eb23b734670640a90cc58adeb48807 (patch)
tree9baf38b7f278afb35e3aaa0bf1ddb98949586767 /.github/workflows/main-branch.yml
parentf891b7daabf33d50913edb11dbbfb82a9216327b (diff)
parentfe3e25494bd4472f40e843f75463d49316ff2585 (diff)
downloadpico-web-0.1.0.tar
pico-web-0.1.0.tar.gz
pico-web-0.1.0.zip
Merge pull request #2 from Syndamia/devv0.1.0
Major changes
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..f19976d 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.TOKEN_GITHUB }}
+ with:
+ bump_version_scheme: minor