Skip to content

Create docker images #12

Create docker images

Create docker images #12

Workflow file for this run

name: Create docker images
on: [create]
jobs:
build:
name: Build and push
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set env
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- uses: mr-smithers-excellent/docker-build-push@v5
name: Build & push Docker image
with:
image: madsky
tags: ${{ env.RELEASE_VERSION }}, latest
registry: ghcr.io/${{ github.actor }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}