Skip to content

Commit

Permalink
Add workflow for Docker
Browse files Browse the repository at this point in the history
  • Loading branch information
phoxwupsh committed Oct 12, 2023
1 parent 79b30a0 commit 6b60ddf
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Docker Image CI

on:
push:
tags:
- 'v*.*.*'

jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- name: Repository checkout
uses: actions/checkout@v4
- name: Login to gchr.io
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Get metadata
id: meta
uses: docker/metadata-action@v5
with:
images: ghcr.io/phoxwupsh/turto
- name: Build & Push Docker Image
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

0 comments on commit 6b60ddf

Please sign in to comment.