Skip to content

Merge pull request #11 from bl3rune/dependabot/npm_and_yarn/eslint-9.2.0 #27

Merge pull request #11 from bl3rune/dependabot/npm_and_yarn/eslint-9.2.0

Merge pull request #11 from bl3rune/dependabot/npm_and_yarn/eslint-9.2.0 #27

name: docker publish
on:
push:
branches:
- main
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@master
- name: get-npm-version
id: package-version
uses: martinbeentjes/npm-get-version-action@main
- 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: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
id: docker_build
uses: docker/build-push-action@v2
with:
push: true
tags: bl3rune/gamedig-discord-bot:latest,bl3rune/gamedig-discord-bot:${{steps.package-version.outputs.current-version}}
- uses: actions/checkout@v2
- name: Docker Hub Description
uses: peter-evans/dockerhub-description@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
repository: bl3rune/gamedig-discord-bot