-
Notifications
You must be signed in to change notification settings - Fork 1
35 lines (27 loc) · 939 Bytes
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Bump version
on:
push:
branches:
- main
jobs:
release:
runs-on: ubuntu-latest
name: "Bump version and publish docker image"
steps:
- name: Check out
uses: actions/checkout@v3
- name: Version Bump
run: |
npm install -g semantic-release
semantic-release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Build Docker Image
run: |
docker-compose -f docker-compose.yml build
- name: Authenticate to GitHub Container Registry
run: echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u ${{ github.repository_owner }} --password-stdin
- name: Push Docker Image to GitHub Packages
run: |
docker tag your-image-name:tag ghcr.io/${{ github.repository_owner }}/your-image-name:tag
docker push ghcr.io/${{ github.repository_owner }}/your-image-name:tag