Skip to content

Commit

Permalink
Update docker-build.yml
Browse files Browse the repository at this point in the history
Added automatic push of readme
  • Loading branch information
magicdude4eva authored Feb 18, 2024
1 parent 2fff9df commit fde4153
Showing 1 changed file with 20 additions and 12 deletions.
32 changes: 20 additions & 12 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,25 @@ jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v2
- name: Check out the repo
uses: actions/checkout@v2

- name: Log in to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Log in to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Build and push Docker image
uses: docker/build-push-action@v2
with:
push: true
tags: magicdude4eva/gunbot-colorised:latest
- name: Build and push Docker image
uses: docker/build-push-action@v2
with:
push: true
tags: magicdude4eva/gunbot-colorised:latest

- name: Update Docker Hub Description
uses: peter-evans/dockerhub-description@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
repository: magicdude4eva/gunbot-colorised
readme-filepath: ./README.md

0 comments on commit fde4153

Please sign in to comment.