Skip to content

Merge pull request #22 from Luois45/Luois45-patch-5 #10

Merge pull request #22 from Luois45/Luois45-patch-5

Merge pull request #22 from Luois45/Luois45-patch-5 #10

name: Docker Image Build and Push
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: luois45
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: Luois45
password: ${{ secrets.GIT_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v2
with:
context: .
push: true
tags: |
luois45/skinbaronbot_v2:latest
ghcr.io/luois45/skinbaronbot_v2:latest
- name: Update Hub Description
uses: peter-evans/dockerhub-description@v2
with:
username: luois45
password: ${{ secrets.DOCKERHUB_PASSWORD }}
repository: luois45/skinbaronbot_v2
readme-filepath: ./DockerHub-README.md