Skip to content

Commit

Permalink
docker deploy wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Knifa committed Nov 29, 2024
1 parent 26e3c1a commit 8b2c299
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@ name: build

on:
push:
branches:
- main
tags:
- v*
branches: docker-test
tags: v*

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build:
Expand All @@ -27,6 +29,9 @@ jobs:
uses: docker/build-push-action@v6
with:
push: true
tags:
- ghcr.io/knifa/led-matrix-zmq-server:edge
- ${{ if startsWith(github.ref, 'refs/tags/v') }} ghcr.io/knifa/led-matrix-zmq-server:${{ github.ref }} ${{ endif }}
tags: |
{{ if startsWith(github.ref, 'refs/tags/') }}
ghcr.io/${{ github.repository }}:{{ github.ref_name }}
{{ else }}
ghcr.io/${{ github.repository }}:edge
{{ end }}

0 comments on commit 8b2c299

Please sign in to comment.