blob: f19976d4b1a71e8e54f4e44bb2c46dd93a275990 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
name: Create release and push production server image to dockerhub
on:
push:
branches:
- main
jobs:
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 }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- uses: docker/build-push-action@v5
with:
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
|