Skip to content

v1.0.5

v1.0.5 #10

Workflow file for this run

name: Publish Docker Image
on:
release:
types: [published]
jobs:
push-to-registery:
name: Publish Docker Image
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Get Previous tag
id: previoustag
uses: WyriHaximus/github-action-get-previous-tag@master
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to DockerHub
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and Push
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
push: true
build-args: VERSION=${{ steps.previoustag.outputs.tag }}
tags: |
ghcr.io/dsharpplus/notifierredirecter:latest
ghcr.io/dsharpplus/notifierredirecter:${{ steps.previoustag.outputs.tag }}