Skip to content
This repository has been archived by the owner on Feb 5, 2024. It is now read-only.

v1.2.6

v1.2.6 #9

Workflow file for this run

name: Publish Docker image
on:
release:
types: [published]
jobs:
push_to_registry:
name: Publish Docker image
runs-on: self-hosted
steps:
- name: Check out the repo
uses: actions/checkout@v2
- name: Get Previous tag
id: previoustag
uses: WyriHaximus/github-action-get-previous-tag@master
- 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:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and Push
uses: docker/build-push-action@v2
with:
context: .
file: ./Dockerfile
push: true
tags: |
ghcr.io/dsharpplus/dsharpplus-doc-bot:latest
ghcr.io/dsharpplus/dsharpplus-doc-bot:${{ steps.previoustag.outputs.tag }}