From 629f72a8769050ca30160f4766e64151fc669e70 Mon Sep 17 00:00:00 2001 From: Maksim Pischulenok <41614960+pischule@users.noreply.github.com> Date: Wed, 26 Apr 2023 11:34:57 +0300 Subject: [PATCH] Update docker-image.yml --- .github/workflows/docker-image.yml | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 3967d3b..85be912 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -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 }}