Improvements to the build system and add versioning (#51) #3
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: base-image | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
release: | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 1 | |
- name: deps | |
run: | | |
sudo apt update -qq | |
sudo apt install singularity-container | |
- name: docker login | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ secrets.GHCR_USER }} | |
password: ${{ secrets.GHCR_PAT }} | |
- name: refresh-base | |
run: | | |
tag=$(date +%Y%m%d) | |
python build.py --target base --tag $tag | |
docker push ghcr.io/gablab/murfi2-base:$tag | |
docker tag ghcr.io/gablab/murfi2-base:$tag ghcr.io/gablab/murfi2-base:latest | |
docker push ghcr.io/gablab/murfi2-base:latest |