Skip to content

Publish Docker Image #10

Publish Docker Image

Publish Docker Image #10

Workflow file for this run

name: Publish Docker Image
on:
push:
branches:
- master
workflow_dispatch:
jobs:
build-commit:
name: Build Commit
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Generate Date Tag
run: echo "TAG=$(date +'%Y%m%d%H%M%S')" >> $GITHUB_ENV
- 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
build-args: VERSION=${{ env.TAG }}
tags: |
ghcr.io/kuylar/dspassistant:latest
ghcr.io/kuylar/dspassistant:${{ env.TAG }}