Skip to content

Commit

Permalink
ci: add dockerize action
Browse files Browse the repository at this point in the history
  • Loading branch information
huantt committed Sep 20, 2023
1 parent e9d3a54 commit 5caa079
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/dockerize.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: dockerize

on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'

jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Generate Docker metadata
id: meta
uses: docker/metadata-action@v3
with:
images: 'docker.io/huanttok/dynamic-thumbnail-service-v2'
tags: |
type=semver,pattern={{major}}.{{minor}}.{{patch}}
flavor: |
latest=true
- name: Login to Docker Hub
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: ${{ steps.meta.outputs.tags }}

0 comments on commit 5caa079

Please sign in to comment.