Skip to content

Merge pull request #118 from hackthebox/dependabot/pip/pip-e4c74ab98f #92

Merge pull request #118 from hackthebox/dependabot/pip/pip-e4c74ab98f

Merge pull request #118 from hackthebox/dependabot/pip/pip-e4c74ab98f #92

Workflow file for this run

name: Build base image
on:
push:
paths:
- Dockerfile.base
- poetry.lock
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
env:
DOCKER_IMAGE: ghcr.io/hackthebox/hackster:base
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to ghcr.io
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build image
uses: docker/build-push-action@v5
with:
push: true
context: .
tags: ${{ env.DOCKER_IMAGE }}
file: Dockerfile.base