Skip to content

Commit

Permalink
Add infrastructure for automatic building of MasKIT docker image.
Browse files Browse the repository at this point in the history
The image rebuild is triggered when anything in the `docker` directory
changes.
  • Loading branch information
foxik committed Jan 6, 2025
1 parent 7c27407 commit bcffb3a
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/maskit_docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: maskit-docker

on:
push:
paths:
- 'docker/**'

jobs:
docker:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
attestations: write
id-token: write
steps:
-
name: Login to Docker Hub
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{github.actor}}
password: ${{secrets.GITHUB_TOKEN}}
-
name: Build and push
uses: docker/build-push-action@v6
with:
context: "{{defaultContext}}:docker"
push: true
tags: ghcr.io/ufal/maskit:latest
7 changes: 7 additions & 0 deletions docker/rebuild.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Rebuild the MASkit Docker image

The goal of this file is just to force a rebuild of the MASKit docker image,
which is being built when any file in the `docker` directory changes.

## Lastest Rebuild:
- Mon Jan 6 15:30:58 CET 2025

0 comments on commit bcffb3a

Please sign in to comment.