Update docker-image.yml

This commit is contained in:
Maksim Pischulenok
2023-04-26 11:34:57 +03:00
committed by GitHub
parent 6dbe7274f5
commit 629f72a876

View File

@@ -3,28 +3,28 @@ name: Docker Image CI
on: on:
push: push:
branches: [ master ] branches: [ master ]
paths-ignore:
- 'README.md'
- 'docker-compose.yml'
pull_request: pull_request:
branches: [ master ] branches: [ master ]
paths-ignore:
- 'README.md'
jobs: jobs:
docker: docker:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- - name: Docker Login
name: Login to DockerHub uses: docker/login-action@v2.1.0
uses: docker/login-action@v2
with: with:
username: ${{ secrets.DOCKERHUB_USERNAME }} registry: ghcr.io
password: ${{ secrets.DOCKERHUB_TOKEN }} username: ${{ github.actor }}
- password: ${{ secrets.GITHUB_TOKEN }}
name: Build and push - name: Docker meta
uses: docker/build-push-action@v3 id: meta
uses: docker/metadata-action@v4
with: with:
images: ghcr.io/pischule/go-mention-all-bot
- name: Build and push Docker images
uses: docker/build-push-action@v4.0.0
with:
context: .
push: true push: true
tags: pischule/go-mention-all-bot:latest tags: ${{ steps.meta.outputs.tags }}