Skip to content

remove the tools install step #1888

remove the tools install step

remove the tools install step #1888

Workflow file for this run

name: Build Docker image
on: [push, pull_request]
jobs:
container:
runs-on: ubuntu-latest
steps:
- name: Checkout master branch
uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install dependencies
run: python3 -m pip install -r docker/requirements.txt
- name: Docker metadata generation
id: meta
uses: docker/metadata-action@v4
with:
images: |
${{ github.repository }}
tags: |
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
- name: Login to Docker Hub
if: ${{ github.repository == 'vladak/opengrok' && github.event_name == 'push' }}
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and optionally push Docker image
uses: docker/build-push-action@v4
with:
push: ${{ github.repository == 'vladak/opengrok' && github.event_name == 'push' }}
tags: ${{ steps.meta.outputs.tags }}