Skip to content

Commit

Permalink
Merge pull request #4 from niklhut/feature/improve-gh-actions
Browse files Browse the repository at this point in the history
Feature/improve gh actions
  • Loading branch information
niklhut authored Nov 8, 2023
2 parents 7655f38 + ff0b425 commit c69571a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 32 deletions.
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

0 comments on commit c69571a

Please sign in to comment.