Add pixi to container #7
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: AnyBodyCon GitHub-actions linux images | |
on: | |
push: | |
branches: ['main'] | |
pull_request: | |
branches: | |
- 'main' | |
workflow_dispatch: | |
jobs: | |
create-images: | |
name: Linux images for AnyBody.${{ matrix.anybody_version }}.${{ matrix.anybody_version_patch }}${{ matrix.anybody_version_suffix }} | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
strategy: | |
matrix: | |
include: | |
- anybody_version: "8.0" | |
anybody_version_patch: "0" | |
anybody_version_suffix: "" | |
build_number: 0 | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: Docker meta | |
id: meta | |
uses: docker/metadata-action@v4 | |
with: | |
images: | | |
anybody/anybodycon | |
ghcr.io/anybody/anybodycon | |
- name: Log in to the Container registry | |
if: ${{ github.event_name != 'pull_request' }} | |
uses: docker/login-action@v2 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build AnyBodyCon-github-actions image | |
uses: docker/build-push-action@v4 | |
with: | |
file: Dockerfile-anybodycon-github-actions | |
push: ${{ github.event_name != 'pull_request' }} | |
cache-from: type=gha, scope=${{ github.workflow }} | |
cache-to: type=gha, scope=${{ github.workflow }} | |
build-args: | | |
ANYBODY_VERSION=${{ matrix.anybody_version }} | |
ANYBODY_VERSION_PATCH=${{ matrix.anybody_version_patch }} | |
ANYBODY_VERSION_SUFFIX=${{ matrix.anybody_version_suffix }} | |
BUILD_NUMBER=${{ matrix.build_number }} | |
tags: | | |
ghcr.io/anybody/anybodycon-github-actions:${{ matrix.anybody_version }}.${{ matrix.anybody_version_patch }}${{ matrix.anybody_version_suffix }}-${{ matrix.build_number }} | |
ghcr.io/anybody/anybodycon-github-actions:${{ matrix.anybody_version }}.${{ matrix.anybody_version_patch }}${{ matrix.anybody_version_suffix }} | |
ghcr.io/anybody/anybodycon-github-actions:${{ matrix.anybody_version }}${{ matrix.anybody_version_suffix }} | |
ghcr.io/anybody/anybodycon-github-actions:latest${{ matrix.anybody_version_suffix }} | |
labels: | | |
org.opencontainers.image.title="anybodycon-github-actions" | |
org.opencontainers.image.description="Image with AnyBody in a linux docker container configured for github actions" | |
org.opencontainers.image.version="${{ matrix.anybody_version }}.${{ matrix.anybody_version_patch }}${{ matrix.anybody_version_suffix }}" | |
org.opencontainers.image.url="https://github.com/AnyBody/anybody-container/pkgs/container/anybodycon-github-actions" | |
org.opencontainers.image.licenses="https://www.anybodytech.com/legal/software-license-agreement/" | |