1
0
mirror of https://github.com/TsakiDev/gitea-comment.git synced 2024-11-22 01:51:57 +01:00

Create docker-image.yml

This commit is contained in:
Tsakiridis Ilias 2022-06-28 23:08:00 +03:00 committed by GitHub
parent 55022dba9c
commit 12a88b72ec
Signed by: GitHub
GPG Key ID: 4AEE18F83AFDEB23

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