Merge pull request #24 from baloise-incubator/feat/2190 #236
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: Docker CI | |
on: | |
push: | |
branches: [ main ] | |
paths: | |
- 'docker/*' | |
schedule: | |
- cron: '28 3 * * 0' #Sundays at 3:28 AM | |
workflow_dispatch: | |
defaults: | |
run: | |
working-directory: ./docker/ # docker/build-push-action@main is not applying a working-directory | |
jobs: | |
docker: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@main | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@master | |
- name: Login to DockerHub | |
uses: docker/login-action@master | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Build and push | |
id: docker_build | |
uses: docker/build-push-action@master | |
with: | |
context: ./docker/ | |
push: true | |
tags: arburk/codeql-analyzer-java:latest |