Update build_and_publish_docker.yml

This commit is contained in:
InsanusMokrassar 2022-04-10 22:19:07 +06:00 committed by GitHub
parent f9ed3c791c
commit 2c27e5257a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 28 additions and 28 deletions

View File

@ -1,28 +1,28 @@
#name: Publish Docker image name: Publish Docker image
#on: [push] on: [push]
#jobs: jobs:
# push_to_registry: push_to_registry:
# name: Push Docker image to Docker Hub name: Push Docker image to Docker Hub
# runs-on: ubuntu-latest runs-on: ubuntu-latest
# steps: steps:
# - name: Check out the repo - name: Check out the repo
# uses: actions/checkout@v2 uses: actions/checkout@v2
# - uses: actions/setup-java@v1 - uses: actions/setup-java@v1
# with: with:
# java-version: 1.8 java-version: 11
# - name: Build - name: Build
# run: ./gradlew build run: ./gradlew build
# - name: Docker meta - name: Docker meta
# id: docker_meta id: docker_meta
# uses: crazy-max/ghaction-docker-meta@v1 uses: crazy-max/ghaction-docker-meta@v1
# with: with:
# images: name/app images: name/app
# tag-sha: true tag-sha: true
# tag-latest: false tag-latest: false
# - name: Push to Docker Hub - name: Push to Docker Hub
# uses: docker/build-push-action@v1 uses: docker/build-push-action@v1
# with: with:
# username: ${{ secrets.DOCKER_USERNAME }} username: ${{ secrets.DOCKER_USERNAME }}
# password: ${{ secrets.DOCKER_PASSWORD }} password: ${{ secrets.DOCKER_PASSWORD }}
# context: . context: .
# tags: ${{ steps.docker_meta.outputs.tags }} tags: ${{ steps.docker_meta.outputs.tags }}