Skip to content

Update image generator #59

Update image generator

Update image generator #59

name: Docker
on:
push:
branches: [ master ]
create:
tags:
- v*
jobs:
build-docker-image:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v2
- id: docker-tag
uses: yuya-takeyama/docker-tag-from-github-ref-action@v1.0.0
with:
remove-version-tag-prefix: false
- name: Log into registry
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push Docker image
uses: docker/build-push-action@v2
with:
context: .
push: true
tags: zkeasoft/zkeacms:${{ steps.docker-tag.outputs.tag }}