chore: change docker workflow

This commit is contained in:
MAZE 2024-01-01 12:39:22 +03:30
parent 210bd234e0
commit cb4bfea5ab

View File

@ -2,9 +2,8 @@ name: Build and push main image
on: on:
push: push:
branches: branches:
- main - main
- dev
jobs: jobs:
push-store-image: push-store-image:
@ -19,9 +18,9 @@ jobs:
with: with:
registry: ghcr.io registry: ghcr.io
username: ${{github.actor}} username: ${{github.actor}}
password: ${{secrets.GITHUB_TOKEN}} password: ${{secrets.ACCESS_TOKEN}}
- name: 'Build Inventory Image' - name: 'Build Inventory Image'
run: | run: |
docker build . --tag ghcr.io/${GITHUB_REPOSITORY}:${GITHUB_REF##*/} docker build . --tag ghcr.io/remvze/moodist:latest
docker push ghcr.io/${GITHUB_REPOSITORY}:${GITHUB_REF##*/} docker push ghcr.io/remvze/moodist:latest