Skip to content
This repository has been archived by the owner on Dec 16, 2024. It is now read-only.

Commit

Permalink
Update build and versioning process
Browse files Browse the repository at this point in the history
  • Loading branch information
MaKraMc authored May 6, 2024
1 parent e522083 commit c410236
Showing 1 changed file with 19 additions and 4 deletions.
23 changes: 19 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@ on:
push:
branches:
- "main"
- "dev"
- "dev*"
tags:
- "v*.*.*"

jobs:
docker:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -22,11 +24,24 @@ jobs:
registry: ghcr.io
username: ${{ secrets.GH_USERNAME }}
password: ${{ secrets.GH_TOKEN }}
- name: Generate image metadata
id: metadata
uses: docker/metadata-action@v5
with:
images: |
ghcr.io/makramc/wdcautomate
tags: |
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
type=sha
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64,linux/arm64
#linux/arm/v7
push: true
tags: ghcr.io/makramc/wdcautomate:latest
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.metadata.outputs.tags }}

0 comments on commit c410236

Please sign in to comment.