Skip to content

Commit

Permalink
Added Docker Hub release Github Action for tag pushes
Browse files Browse the repository at this point in the history
  • Loading branch information
gregjoy1 committed Oct 16, 2024
1 parent a0ef793 commit cac5855
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/Release-Docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
---

name: Build Docker image for latest tag release and push to Dockerhub.

on:
# This workflow is run each time a tag is pushed.
push:
tags:
- "[0-9]+.[0-9]+.[0-9]+"

env:
DOCKER_ORG: gregjoy
DOCKER_REPO: redical

jobs:
docker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: set up qemu
uses: docker/setup-qemu-action@v2

- name: set up buildx
uses: docker/setup-buildx-action@v2

- name: dockerhub login
uses: docker/login-action@v2
with:
username: ${{secrets.DOCKERHUB_USERNAME}}
password: ${{secrets.DOCKERHUB_PASSWORD}}

- name: Build and push
uses: docker/build-push-action@v4
with:
push: true
tags: ${{env.DOCKER_ORG}}/${{env.DOCKER_REPO}}:${{github.ref_name}}

- name: Update readme and description
uses: christian-korneck/update-container-description-action@v1
env:
DOCKER_USER: ${{secrets.DOCKERHUB_USERNAME}}
DOCKER_PASS: ${{secrets.DOCKERHUB_PASSWORD}}
with:
destination_container_repo: ${{env.DOCKER_ORG}}/${{env.DOCKER_REPO}}
provider: dockerhub
short_description: 'A Redis module that facilitates the storage, expansion, and querying of overridable calendar events.'
readme_file: 'README.md'

0 comments on commit cac5855

Please sign in to comment.