chore(deps): update actions/checkout action to v4 #316
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@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4 | |
- 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 |