Skip to content

Commit

Permalink
fix: Update CI and enable semrel (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
hairmare authored Mar 31, 2024
1 parent fe794a4 commit 2691985
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 40 deletions.
53 changes: 13 additions & 40 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,47 +1,20 @@
name: Build Container Image
name: Release

on:
pull_request:
push:
branches:
- master
- main
tags:
- '*'

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Docker meta
id: docker_meta
uses: crazy-max/ghaction-docker-meta@v5
with:
images: ghcr.io/radiorabe/roundcubemail
tag-sha: false

- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GH_PAT_TOKEN }}

- name: Build and push
id: docker_build
uses: docker/build-push-action@v5
with:
context: ./
file: ./Dockerfile
platforms: linux/amd64
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.docker_meta.outputs.tags }}
labels: ${{ steps.docker_meta.outputs.labels }}
release-container:
uses: radiorabe/actions/.github/workflows/[email protected]
with:
image: 'ghcr.io/radiorabe/roundcubemail'
name: roundcubemail
display-name: Roundcube Mail
tags: 'rabe roundcubemail'
cosign-verify: false
cosign-base-image-only: true
12 changes: 12 additions & 0 deletions .github/workflows/schedule.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Scheduled tasks

on:
schedule:
- cron: '13 12 * * *'
workflow_dispatch:

jobs:
schedule-trivy:
uses: radiorabe/actions/.github/workflows/[email protected]
with:
image-ref: 'ghcr.io/radiorabe/roundcubemail:latest'
13 changes: 13 additions & 0 deletions .github/workflows/semantic-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Semantic Release

on:
push:
branches:
- main
- release/*

jobs:
semantic-release:
uses: radiorabe/actions/.github/workflows/[email protected]
secrets:
RABE_ITREAKTION_GITHUB_TOKEN: ${{ secrets.RABE_ITREAKTION_GITHUB_TOKEN }}

0 comments on commit 2691985

Please sign in to comment.