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:
push:
branches: [ master ]
paths-ignore:
- 'README.md'
- 'docker-compose.yml'
pull_request:
branches: [ master ]
paths-ignore:
- 'README.md'
jobs:
docker:
runs-on: ubuntu-latest
steps:
-
name: Login to DockerHub
uses: docker/login-action@v2
- name: Docker Login
uses: docker/login-action@v2.1.0
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push
uses: docker/build-push-action@v3
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Docker meta
id: meta
uses: docker/metadata-action@v4
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
tags: pischule/go-mention-all-bot:latest
tags: ${{ steps.meta.outputs.tags }}