Skip to content
This repository was archived by the owner on Jan 24, 2024. It is now read-only.

Commit e56d8f4

Browse files
committed
build(ci): add workflow for releasing
1 parent 39674b0 commit e56d8f4

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/release.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Release
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
release:
9+
name: release
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout repository
13+
uses: actions/checkout@v3
14+
- name: Set up Docker Buildx
15+
uses: docker/setup-buildx-action@v2
16+
id: buildx
17+
- name: Login to GitHub Container Registry
18+
uses: docker/login-action@v2
19+
with:
20+
registry: ghcr.io
21+
username: ${{ github.actor }}
22+
password: ${{ secrets.GITHUB_TOKEN }}
23+
- name: Build and push images to GitHub Container Registry
24+
run: make github-packages
25+
- name: Login to Docker Hub
26+
uses: docker/login-action@v2
27+
with:
28+
username: ${{ secrets.DOCKERHUB_USERNAME }}
29+
password: ${{ secrets.DOCKERHUB_TOKEN }}
30+
- name: Build and push images to Docker Hub
31+
run: make docker-hub

0 commit comments

Comments
 (0)