mirror of
https://github.com/TsakiDev/gitea-comment.git
synced 2024-11-07 15:19:18 +01:00
Create docker-image.yml
This commit is contained in:
parent
55022dba9c
commit
12a88b72ec
26
.github/workflows/docker-image.yml
vendored
Normal file
26
.github/workflows/docker-image.yml
vendored
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
name: Docker Image CI
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
# branches: [ "master" ]
|
||||||
|
tags:
|
||||||
|
- '*'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
|
||||||
|
build:
|
||||||
|
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- name: Login to docker
|
||||||
|
run: docker login -u ${{secrets.DOCKER_USER}} -p ${{secrets.DOCKER_PASSWORD}}
|
||||||
|
- name: Determine version
|
||||||
|
run: echo "VERSION=$(git describe --tags --dirty)" >> $GITHUB_ENV
|
||||||
|
- name: Build the Docker image
|
||||||
|
run: |
|
||||||
|
docker build . --file Dockerfile --tag tsakidev/giteacomment:${VERSION}
|
||||||
|
docker build . --file Dockerfile --tag tsakidev/giteacomment:latest
|
||||||
|
- name: Docker push
|
||||||
|
run: docker push tsakidev/giteacomment
|
Loading…
Reference in New Issue
Block a user