-
Notifications
You must be signed in to change notification settings - Fork 62
53 lines (47 loc) · 1.34 KB
/
publish_docker.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Publish Lava Docker Container # Only for main lava repo, not forks
on:
workflow_run:
workflows: ["Test Lava"]
types:
- completed
pull_request:
branches:
- master
- next
jobs:
create_release:
if: github.repository == 'panda-re/lava' && github.ref == 'refs/heads/master'
runs-on: ubuntu-latest
outputs:
v-version: ${{ steps.version.outputs.v-version }}
steps:
- name: Get next version
uses: reecetech/version-increment@2023.10.2
id: version
with:
release_branch: master
use_api: true
increment: patch
build_stable:
needs: [create_release]
if: github.repository == 'panda-re/lava' && github.ref == 'refs/heads/master'
runs-on: panda-arc
steps:
- name: 'Login to Docker Registry'
uses: docker/login-action@v3
with:
username: pandare
password: ${{secrets.ALL_PANDARE_DOCKERHUB}}
- name: Checkout LAVA at current commit
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Build lava:latest
uses: docker/build-push-action@v5
with:
context: ${{ github.workspace }}
push: true
tags: |
pandare/lava:latest
pandare/lava:${{ github.sha }}
pandare/lava:${{ needs.create_release.outputs.v-version }}