mirror of
https://github.com/remvze/moodist.git
synced 2025-12-18 09:24:14 +00:00
chore: update GitHub action
This commit is contained in:
parent
7823dc7ff4
commit
ee606139a8
1 changed files with 12 additions and 4 deletions
16
.github/workflows/build_docker.yml
vendored
16
.github/workflows/build_docker.yml
vendored
|
|
@ -2,8 +2,8 @@ name: Build and push main image
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
tags:
|
||||||
- main
|
- '*'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
push-store-image:
|
push-store-image:
|
||||||
|
|
@ -22,5 +22,13 @@ jobs:
|
||||||
|
|
||||||
- name: 'Build Inventory Image'
|
- name: 'Build Inventory Image'
|
||||||
run: |
|
run: |
|
||||||
docker build . --tag ghcr.io/remvze/moodist:latest
|
IMAGE_NAME="ghcr.io/remvze/moodist"
|
||||||
docker push ghcr.io/remvze/moodist:latest
|
|
||||||
|
GIT_TAG=${{ github.ref }}
|
||||||
|
GIT_TAG=${GIT_TAG#refs/tags/}
|
||||||
|
|
||||||
|
docker build . --tag $IMAGE_NAME:latest
|
||||||
|
docker push $IMAGE_NAME:latest
|
||||||
|
|
||||||
|
docker build . --tag $IMAGE_NAME:$GIT_TAG
|
||||||
|
docker push $IMAGE_NAME:$GIT_TAG
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue