Skip to content
This repository was archived by the owner on Sep 5, 2023. It is now read-only.

Commit c119ad7

Browse files
Push images to ghcr.io
1 parent d992736 commit c119ad7

File tree

4 files changed

+39
-1
lines changed

4 files changed

+39
-1
lines changed

.github/dependabot.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: github-actions
4+
directory: /
5+
schedule:
6+
interval: daily

.github/release-drafter.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
name-template: $RESOLVED_VERSION
2+
tag-template: v$RESOLVED_VERSION
3+
template: |
4+
## What's Changed
5+
6+
$CHANGES

.github/workflows/ci.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,17 @@ jobs:
1919
steps:
2020
- uses: actions/checkout@v3
2121
- uses: depot/setup-action@v1
22+
- uses: docker/metadata-action@v4
23+
id: meta
24+
with:
25+
images: ghcr.io/depot/${{ matrix.project }}
26+
github-token: ${{ secrets.GITHUB_TOKEN }}
27+
tags: |
28+
type=ref,event=branch
29+
type=ref,event=pr
30+
type=semver,pattern={{version}}
31+
type=semver,pattern={{major}}.{{minor}}
32+
type=semver,pattern={{major}}
2233
- uses: docker/login-action@v2
2334
with:
2435
registry: ghcr.io
@@ -27,5 +38,7 @@ jobs:
2738
- uses: depot/build-push-action@v1
2839
with:
2940
context: ./${{ matrix.project }}
30-
tags: ghcr.io/depot/${{ matrix.project }}:${{ github.sha }}
3141
platforms: linux/amd64,linux/arm64
42+
push: ${{ github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v') }}
43+
tags: ${{ steps.meta.outputs.tags }}
44+
labels: ${{ steps.meta.outputs.labels }}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: release-drafter
2+
on:
3+
push:
4+
branches:
5+
- main
6+
7+
jobs:
8+
release-drafter:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: release-drafter/release-drafter@v5
12+
env:
13+
GITHUB_TOKEN: ${{ secrets.BOT_PUBLIC_GITHUB_TOKEN }}

0 commit comments

Comments
 (0)