Skip to content

chore(deps): update dependency conan to v2 #310

chore(deps): update dependency conan to v2

chore(deps): update dependency conan to v2 #310

name: Docker-Build
# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the master branch and if tags are created
push:
paths:
- '**/docker/*'
pull_request:
branches: [ master ]
paths:
- '**/docker/*'
create:
branches: [ master ]
tags: [docker-v*.*.*]
workflow_dispatch:
jobs:
docker-build:
env:
working-directory: "./docker"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: login
uses: docker/[email protected]
if: startsWith(github.ref, 'refs/tags/docker-v')
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_ACCESSTOKEN }}
logout: true
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install docker
- name: lint
working-directory: ${{env.working-directory}}
run: docker run --rm -i hadolint/hadolint < Dockerfile
- name: build
working-directory: ${{env.working-directory}}
run: python3 ./build.py
- name: push
working-directory: ${{env.working-directory}}
if: startsWith(github.ref, 'refs/tags/docker-v')
run: python3 ./build.py --gitref ${{ github.ref }}