Skip to content

Commit

Permalink
add versioning for all images
Browse files Browse the repository at this point in the history
  • Loading branch information
mms-gianni committed Mar 26, 2023
1 parent e41706b commit 61c31c4
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 11 deletions.
19 changes: 13 additions & 6 deletions .github/workflows/docker-releas-fetch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ name: Docker Fetch
# documentation.

on:
workflow_dispatch:
schedule:
- cron: '25 14 * * 0'
#push:
#workflow_dispatch:
#schedule:
# - cron: '25 14 * * 0'
push:
# branches: [ "main" ]
# # Publish semver tags as releases.
# tags: [ 'v*.*.*' ]
# Publish semver tags as releases.
tags: [ 'v*.*.*' ]
#pull_request:
# branches: [ "main" ]

Expand Down Expand Up @@ -69,7 +69,14 @@ jobs:
id: fetch-meta
uses: docker/metadata-action@v4
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
images: ${{ env.REGISTRY }}/${{ github.repository }}/fetch
tags: |
type=semver,pattern=v{{version}}
type=semver,pattern=v{{major}}.{{minor}}
type=semver,pattern=v{{major}}
type=raw,value=main,enable={{is_default_branch}}
type=raw,value=latest,enable={{is_default_branch}}
# Build and push Docker image with Buildx (don't push on PR)
# https://github.com/docker/build-push-action
Expand Down
17 changes: 12 additions & 5 deletions .github/workflows/docker-releas-php.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ name: Docker release php
# documentation.

on:
workflow_dispatch:
schedule:
- cron: '17 14 * * 0'
#push:
#workflow_dispatch:
#schedule:
# - cron: '17 14 * * 0'
push:
# branches: [ "main" ]
# # Publish semver tags as releases.
# tags: [ 'v*.*.*' ]
tags: [ 'v*.*.*' ]
#pull_request:
# branches: [ "main" ]

Expand Down Expand Up @@ -64,7 +64,14 @@ jobs:
id: fetch-meta
uses: docker/metadata-action@v4
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
images: ${{ env.REGISTRY }}/${{ github.repository }}/php
tags: |
type=semver,pattern=v{{version}}
type=semver,pattern=v{{major}}.{{minor}}
type=semver,pattern=v{{major}}
type=raw,value=main,enable={{is_default_branch}}
type=raw,value=latest,enable={{is_default_branch}}
# Build and push Docker image with Buildx (don't push on PR)
# https://github.com/docker/build-push-action
Expand Down

0 comments on commit 61c31c4

Please sign in to comment.