Skip to content

bump: version 0.4.1 → 0.4.2 #6

bump: version 0.4.1 → 0.4.2

bump: version 0.4.1 → 0.4.2 #6

Workflow file for this run

name: publish
on:
push:
tags:
- v*
jobs:
build-publish-docker-images:
runs-on: ubuntu-latest
steps:
- name: Branch name
id: branch_name
run: |
echo ::set-output name=SOURCE_TAG::${GITHUB_REF#refs/tags/}
- uses: actions/checkout@v2
- run: |
git fetch --tags
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build Docker images
env:
SOURCE_TAG: ${{ steps.branch_name.outputs.SOURCE_TAG }}
run: |
docker build --build-arg VERSION=${SOURCE_TAG#v} --tag "ghcr.io/kazanexpress/${{ github.event.repository.name }}:26.0.0-$SOURCE_TAG" --tag "ghcr.io/kazanexpress/${{ github.event.repository.name }}:latest" .
docker push --all-tags ghcr.io/kazanexpress/${{ github.event.repository.name }}