-
Notifications
You must be signed in to change notification settings - Fork 44
32 lines (31 loc) · 885 Bytes
/
balancer.yaml
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
name: Load-balancer image
on:
push:
branches:
- dev
paths:
- 'balancer/**'
- '.github/**'
- 'Makefile'
pull_request:
paths:
- 'balancer/**'
- '.github/**'
- 'Makefile'
jobs:
push:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # renovate: tag=v2
- name: Build production image
run: make build_balancer
- name: "Docker login"
if: github.ref == 'refs/heads/dev'
env:
DOCKER_REGISTRY_URL: docker-registry.siecobywatelska.pl
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
run: echo "${DOCKER_PASSWORD}" | docker login -u ${DOCKER_USERNAME} --password-stdin ${DOCKER_REGISTRY_URL}
- name: Push image
if: github.ref == 'refs/heads/dev'
run: make push_balancer