Skip to content

Docker CI

Docker CI #246

Workflow file for this run

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