update docker_build

This commit is contained in:
vvzvlad 2023-04-17 22:48:33 +07:00
parent c28c504b98
commit 461ef038ea

View File

@ -1,6 +1,7 @@
name: Build and Publish Docker Image name: Build and Publish Docker Image
on: on:
workflow_dispatch:
push: push:
branches: branches:
- master - master
@ -10,7 +11,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v2 uses: actions/checkout@v3
- name: Set up Docker Buildx - name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1 uses: docker/setup-buildx-action@v1
@ -22,7 +23,7 @@ jobs:
password: ${{ secrets.DOCKERHUB_TOKEN }} password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push Docker image - name: Build and push Docker image
uses: docker/build-push-action@v2 uses: docker/build-push-action@v4
with: with:
context: . context: .
push: true push: true