Skip to content

(≧ω≦): add schedule #2

(≧ω≦): add schedule

(≧ω≦): add schedule #2

Workflow file for this run

name: build
on:
push:
branches:
- master
schedule:
# every month first day
- cron: '0 0 1 * *'
workflow_dispatch:
permissions:
id-token: write
packages: write
jobs:
standard:
runs-on: ubuntu-latest
timeout-minutes: 30
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-standard
cancel-in-progress: true
steps:
- uses: actions/checkout@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: |
ghcr.io/${{ github.repository }}
tags: |
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=schedule,pattern={{date 'YYYYMMDD'}}
type=raw,value=standard-${{ github.run_id }}
type=raw,value=${{ github.run_id }}
type=raw,value=latest
type=raw,value=standard
- name: Build and push
uses: docker/build-push-action@v4
with:
context: .
file: ./Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: |
org.opencontainers.image.source=github.com/${{ github.repository }}
beat:
runs-on: ubuntu-latest
timeout-minutes: 30
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-beat
cancel-in-progress: true
steps:
- uses: actions/checkout@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: |
ghcr.io/${{ github.repository }}
tags: |
type=semver,pattern=beat-{{version}}
type=semver,pattern=beat-{{major}}.{{minor}}
type=schedule,pattern=beat-{{date 'YYYYMMDD'}}
type=raw,value=beat-${{ github.run_id }}
type=raw,value=latest-beat
type=raw,value=beat
- name: Build and push
uses: docker/build-push-action@v4
with:
context: .
file: ./Dockerfile
push: true
build-args: |
FILE=clientportal.beta.gw.zip
tags: ${{ steps.meta.outputs.tags }}
labels: |
org.opencontainers.image.source=github.com/${{ github.repository }}