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:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
tags:
|
||||
- '*'
|
||||
|
||||
jobs:
|
||||
push-store-image:
|
||||
@ -22,5 +22,13 @@ jobs:
|
||||
|
||||
- name: 'Build Inventory Image'
|
||||
run: |
|
||||
docker build . --tag ghcr.io/remvze/moodist:latest
|
||||
docker push ghcr.io/remvze/moodist:latest
|
||||
IMAGE_NAME="ghcr.io/remvze/moodist"
|
||||
|
||||
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