Skip to content

docker

docker #28

Workflow file for this run

name: docker
on:
# We build this only by manually triggering this job from the actions tab
workflow_dispatch:
# Splitting into three jobs to make stuff build in parallel (on multiple runners)
jobs:
# Note: job names should be unique across all workflows!
# docker-fpsdk-noetic:
# runs-on: ubuntu-latest
# steps:
# - name: Checkout
# uses: actions/checkout@v4
# - name: Login
# uses: docker/login-action@v3
# with:
# registry: ghcr.io
# username: ${{ github.actor }}
# password: ${{ secrets.GITHUB_TOKEN }}
# # Pulling first, so that maybe it not everything has to be built...
# - name: Build
# run: |
# cd ${GITHUB_WORKSPACE}/docker
# COMPOSE_PARALLEL_LIMIT=1 docker compose build noetic-base noetic-ci noetic-dev
# - name: Push
# run: |
# cd ${GITHUB_WORKSPACE}/docker
# docker compose push noetic-base noetic-ci noetic-dev
# docker-fpsdk-humble:
# runs-on: ubuntu-latest
# steps:
# - name: Checkout
# uses: actions/checkout@v4
# - name: Login
# uses: docker/login-action@v3
# with:
# registry: ghcr.io
# username: ${{ github.actor }}
# password: ${{ secrets.GITHUB_TOKEN }}
# # Pulling first, so that maybe it not everything has to be built...
# - name: Build
# run: |
# cd ${GITHUB_WORKSPACE}/docker
# COMPOSE_PARALLEL_LIMIT=1 docker compose build humble-base humble-ci humble-dev
# - name: Push
# run: |
# cd ${GITHUB_WORKSPACE}/docker
# docker compose push humble-base humble-ci humble-dev
# docker-fpsdk-jazzy:
# runs-on: ubuntu-latest
# steps:
# - name: Checkout
# uses: actions/checkout@v4
# - name: Login
# uses: docker/login-action@v3
# with:
# registry: ghcr.io
# username: ${{ github.actor }}
# password: ${{ secrets.GITHUB_TOKEN }}
# # Pulling first, so that maybe it not everything has to be built...
# - name: Build
# run: |
# cd ${GITHUB_WORKSPACE}/docker
# COMPOSE_PARALLEL_LIMIT=1 docker compose build jazzy-base jazzy-ci jazzy-dev
# - name: Push
# run: |
# cd ${GITHUB_WORKSPACE}/docker
# docker compose push jazzy-base jazzy-ci jazzy-dev
# docker-fpsdk-bookworm:
# runs-on: ubuntu-latest
# steps:
# - name: Checkout
# uses: actions/checkout@v4
# - name: Login
# uses: docker/login-action@v3
# with:
# registry: ghcr.io
# username: ${{ github.actor }}
# password: ${{ secrets.GITHUB_TOKEN }}
# # Pulling first, so that maybe it not everything has to be built...
# - name: Build
# run: |
# cd ${GITHUB_WORKSPACE}/docker
# COMPOSE_PARALLEL_LIMIT=1 docker compose build bookworm-base bookworm-ci bookworm-dev
# - name: Push
# run: |
# cd ${GITHUB_WORKSPACE}/docker
# docker compose push bookworm-base bookworm-ci bookworm-dev
docker-cleanup:
runs-on: ubuntu-latest
# needs:
# - docker-fpsdk-noetic
# - docker-fpsdk-humble
# - docker-fpsdk-jazzy
# - docker-fpsdk-bookworm
steps:
- name: Login
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
# github.repository_owner: fixposition
# github.actor: flipflip8952
# github.repository: fixposition/fixposition_utility
# https://github.com/marketplace/actions/ghcr-cleaner
- name: Gugus
run: |
echo "github.repository_owner: ${{ github.repository_owner }}"
echo "github.actor: ${{ github.actor }}"
echo "github.repository: ${{ github.repository }}"
- name: Expire old images
uses: quartx-analytics/ghcr-cleaner@v1
with:
owner-type: org
token: ${{ secrets.GITHUB_TOKEN }}
repository-owner: ${{ github.repository_owner }}
#repository_owner: ${{ github.actor }}
repository-name: ${{ github.repository }}
#package-name: fixposition-sdk
delete-untagged: true
dry-run: true