Add docker release action
This commit is contained in:
parent
939dc90c2b
commit
82ce6a48f4
|
@ -0,0 +1,36 @@
|
||||||
|
name: Docker build release
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- '*'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
docker:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
-
|
||||||
|
name: Set release tag
|
||||||
|
uses: olegtarasov/get-tag@v2
|
||||||
|
id: tagName
|
||||||
|
with:
|
||||||
|
tagRegex: 'v(.*)'
|
||||||
|
tagRegexGroup: 1
|
||||||
|
-
|
||||||
|
name: Set up QEMU
|
||||||
|
uses: docker/setup-qemu-action@v2
|
||||||
|
-
|
||||||
|
name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v2
|
||||||
|
-
|
||||||
|
name: Login to Docker Hub
|
||||||
|
uses: docker/login-action@v2
|
||||||
|
with:
|
||||||
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
|
-
|
||||||
|
name: Build and push
|
||||||
|
uses: docker/build-push-action@v3
|
||||||
|
with:
|
||||||
|
push: true
|
||||||
|
tags: karniv001/hyper-tuner-cloud-backend:${GIT_TAG_NAME}
|
|
@ -1,6 +1,8 @@
|
||||||
{
|
{
|
||||||
"cSpell.words": [
|
"cSpell.words": [
|
||||||
|
"Buildx",
|
||||||
"daos",
|
"daos",
|
||||||
|
"DOCKERHUB",
|
||||||
"labstack",
|
"labstack",
|
||||||
"Middlewares",
|
"Middlewares",
|
||||||
"pocketbase",
|
"pocketbase",
|
||||||
|
|
Loading…
Reference in New Issue