Skip to content

run for tags

run for tags #17

Workflow file for this run

name: build
on:
pull_request:
branches:
- "*"
push:
branches:
- main
tags:
- "v*"
jobs:
build:
runs-on: ubuntu-latest
permissions:
checks: write
contents: write
packages: write
statuses: write
steps:
- uses: actions/checkout@v4.0.0
with:
fetch-depth: 0
- name: createVersion
run: |
echo "VERSION=$(git describe --tag --always)" >> $GITHUB_ENV
- name: 'Login to GitHub Container Registry'
uses: docker/login-action@v2.2.0
with:
registry: ghcr.io
username: ${{github.actor}}
password: ${{secrets.GITHUB_TOKEN}}
- name: build and push
run: |
make docker-buildx IMG=ghcr.io/${{ github.actor }}/${{ github.repository }}:${{ env.VERSION }}