forked from podtato-head/podtato-head
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (41 loc) · 1.06 KB
/
server-build-test-release.yaml
File metadata and controls
46 lines (41 loc) · 1.06 KB
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
36
37
38
39
40
41
42
43
44
45
46
name: podtato-head-server-test-and-release
on:
push:
paths:
- 'podtato-head-server/**'
pull_request:
paths:
- 'podtato-head-server/**'
permissions:
packages: write
defaults:
run:
shell: bash
jobs:
build-and-test:
runs-on: ubuntu-latest
env:
GITHUB_USER: ${{ github.repository_owner }}
GITHUB_TOKEN: ${{ github.token }}
IMAGE_REPO: "ghcr.io/${{ github.repository_owner }}/podtato-head"
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build images
run: make push-server-images
- name: Test images
run: make test-server
release:
if: github.repository_owner == 'podtato-head' && github.ref_name == 'main'
runs-on: ubuntu-latest
env:
GITHUB_USER: ${{ github.repository_owner }}
GITHUB_TOKEN: ${{ secrets.CR_PAT }}
IMAGE_REPO: "ghcr.io/podtato-head"
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build images
run: make push-server-images
- name: Test images
run: make test-server