-
-
Notifications
You must be signed in to change notification settings - Fork 2
31 lines (26 loc) · 883 Bytes
/
ci.yml
File metadata and controls
31 lines (26 loc) · 883 Bytes
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
name: ci
on: [push]
jobs:
build:
runs-on: ubuntu-latest
name: Build docker image
steps:
- name: Checkout source
uses: actions/checkout@v2
with:
submodules: true
fetch-depth: 1
- name: Get the current branch name
shell: bash
run: echo "::set-output name=branch::${GITHUB_REF#refs/heads/}"
id: ref
- name: Build + push pmmp image
uses: nxtlvlsoftware/docker-build-action@master
with:
name: docker.pkg.github.com/nxtlvlsoftware/pmmp/server
tag: ${{ steps.ref.outputs.branch }}
registry_username: ${{ secrets.DOCKER_USERNAME }}
registry_password: ${{ secrets.DOCKER_PASSWORD }}
registry_uri: ${{ secrets.DOCKER_REGISTRY }}
pull: false
extra_args: "--build-arg PHP_VERSION=${{ steps.ref.outputs.branch }}"