chore(deps): update nginx:alpine docker digest to 4152318 #358
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |