Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/improve gh actions #4

Merged
merged 4 commits into from
Nov 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 0 additions & 29 deletions .github/workflows/build.yml

This file was deleted.

16 changes: 13 additions & 3 deletions .github/workflows/docker-img.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ on:
branches:
- main
- master
pull_request:
branches:
- main
- master

env:
REGISTRY: ghcr.io
Expand Down Expand Up @@ -41,13 +45,19 @@ jobs:
with:
images: ${{ env.REGISTRY }}/${{ github.repository }}
flavor: |
latest=true
# don't set latest flavor since it is handled by the raw latest tag
latest=false
tags: |
# set tags for pushes to branches
type=ref,event=branch
# set tags for pull requests
type=ref,event=pr
# set tags for releases
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}

type=semver,pattern={{major}}
# set latest tag for default branch
type=raw,value=latest,enable={{is_default_branch}}
- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
Expand Down