Skip to content

Commit

Permalink
Merge pull request #19 from 3arthqu4ke/docker-publish-with-tag
Browse files Browse the repository at this point in the history
Docker publish with tag
  • Loading branch information
3arthqu4ke authored Jul 17, 2022
2 parents f823f6e + 14a712e commit 8f2de0a
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/docker_w_tag.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: docker publish with tag

on:
release:

jobs:
docker:
runs-on: ubuntu-latest
steps:
-
name: Set up QEMU
uses: docker/setup-qemu-action@v2
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
-
name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push
uses: docker/build-push-action@v3
with:
push: true
tags: 3arthqu4ke/headlessmc:${{ github.event.release.tag_name }}

33 changes: 33 additions & 0 deletions .github/workflows/docker_w_tag_manual.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: docker publish with tag manually

on:
workflow_dispatch:
inputs:
tag:
description: 'The tag of the new docker image.'
required: true
default: latest

jobs:
docker:
runs-on: ubuntu-latest
steps:
-
name: Set up QEMU
uses: docker/setup-qemu-action@v2
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
-
name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push
uses: docker/build-push-action@v3
with:
push: true
tags: 3arthqu4ke/headlessmc:${{ github.event.inputs.tag }}

0 comments on commit 8f2de0a

Please sign in to comment.