Update docker-image.yml

This commit is contained in:
Dima YaFlay
2023-10-22 13:58:33 +03:00
committed by GitHub
parent 5aaf88c75e
commit 4017486877

View File

@@ -4,9 +4,11 @@ on:
release:
types: [published]
push:
types: [published]
branches: [ "master" ]
pull_request:
types: [published]
branches: [ "master" ]
jobs:
push_to_registries:
@@ -19,6 +21,12 @@ jobs:
- name: Check out the repo
uses: actions/checkout@v4
- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Log in to the Container registry
uses: docker/login-action@v2
with:
@@ -31,6 +39,7 @@ jobs:
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
with:
images: |
yaflay/yaflay.ru
ghcr.io/${{ github.repository }}
- name: Build and push Docker images