mirror of
https://github.com/remvze/moodist.git
synced 2025-09-29 15:30:49 -04:00
chore: update GitHub action
This commit is contained in:
parent
7823dc7ff4
commit
ee606139a8
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…
x
Reference in New Issue
Block a user