-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (37 loc) · 1021 Bytes
/
image.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
36
37
38
name: lapper
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
schedule:
- cron: '0 0 1 * *'
permissions:
contents: read
packages: write
jobs:
image:
name: Image
runs-on: ubuntu-22.04
env:
IMAGE_NAME: docker.pkg.github.com/finatext/lapper/lapper:beta
IMAGE_NAME_LATEST: docker.pkg.github.com/finatext/lapper/lapper:latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
fetch-depth: 1
- name: Test
run: make test
- name: Build
run: |
docker build -t $IMAGE_NAME .
docker build -t $IMAGE_NAME_LATEST .
- name: Docker Login
run: |
docker login docker.pkg.github.com -u owner -p ${{ secrets.GITHUB_TOKEN }}
- name: Push
if: (github.event_name == 'push' && github.ref == 'refs/heads/master') || github.event_name == 'schedule'
run: |
docker push $IMAGE_NAME
docker push $IMAGE_NAME_LATEST
timeout-minutes: 5