Disable devcontainer build #15
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: Build and push AnyBodyCon linux images | |
on: | |
push: | |
branches: ['main'] | |
pull_request: | |
branches: | |
- 'main' | |
workflow_dispatch: | |
env: | |
ANYBODY_VERSION: "8.0" | |
ANYBODY_VERSION_PATCH: "0" | |
ANYBODY_VERSION_SUFFIX: "" | |
BUILD_NUMBER: 2 | |
jobs: | |
create-anybodycon-image: | |
name: AnyBodyCon image | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
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 image | |
uses: docker/build-push-action@v4 | |
with: | |
file: Dockerfile-anybodycon | |
push: ${{ github.event_name != 'pull_request' }} | |
cache-from: type=gha, scope=${{ github.workflow }} | |
cache-to: type=gha, scope=${{ github.workflow }} | |
build-args: | | |
ANYBODY_VERSION=${{ env.ANYBODY_VERSION }} | |
ANYBODY_VERSION_PATCH=${{ env.ANYBODY_VERSION_PATCH }} | |
ANYBODY_VERSION_SUFFIX=${{ env.ANYBODY_VERSION_SUFFIX }} | |
tags: | | |
ghcr.io/anybody/anybodycon:${{ env.ANYBODY_VERSION }}.${{ env.ANYBODY_VERSION_PATCH }}${{ env.ANYBODY_VERSION_SUFFIX }}-${{ env.BUILD_NUMBER }} | |
ghcr.io/anybody/anybodycon:${{ env.ANYBODY_VERSION }}.${{ env.ANYBODY_VERSION_PATCH }}${{ env.ANYBODY_VERSION_SUFFIX }} | |
ghcr.io/anybody/anybodycon:${{ env.ANYBODY_VERSION }}${{ env.ANYBODY_VERSION_SUFFIX }} | |
ghcr.io/anybody/anybodycon:latest${{ env.ANYBODY_VERSION_SUFFIX }} | |
labels: | | |
org.opencontainers.image.title="anybodycon" | |
org.opencontainers.image.description="Minimal image with AnyBody in a linux docker container" | |
org.opencontainers.image.version="${{ env.ANYBODY_VERSION }}.${{ env.ANYBODY_VERSION_PATCH }}${{ env.ANYBODY_VERSION_SUFFIX }}" | |
org.opencontainers.image.url="https://github.com/AnyBody/anybody-container/pkgs/container/anybodycon" | |
org.opencontainers.image.licenses="https://www.anybodytech.com/legal/software-license-agreement/" | |
# create-anybodycon-devcontainer-image: | |
# name: AnyBodyCon DevContainer image | |
# runs-on: ubuntu-latest | |
# permissions: | |
# contents: read | |
# packages: write | |
# steps: | |
# - 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-devcontainer | |
# ghcr.io/anybody/anybodycon-devcontainer | |
# - 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 and push AnyBodyCon devcontainer image | |
# uses: docker/build-push-action@v4 | |
# with: | |
# file: Dockerfile-anybodycon | |
# push: ${{ github.event_name != 'pull_request' }} | |
# cache-from: type=gha, scope=${{ github.workflow }} | |
# cache-to: type=gha, scope=${{ github.workflow }} | |
# build-args: | | |
# ANYBODY_VERSION=${{ env.ANYBODY_VERSION }} | |
# ANYBODY_VERSION_PATCH=${{ env.ANYBODY_VERSION_PATCH }} | |
# ANYBODY_VERSION_SUFFIX=${{ env.ANYBODY_VERSION_SUFFIX }} | |
# BASE_IMAGE=mcr.microsoft.com/vscode/devcontainers/universal | |
# DISTRO=ubuntu | |
# DISTRO_VERSION=focal | |
# ANYBODY_USER=codespace | |
# TAG=2.8.0-focal | |
# tags: | | |
# ghcr.io/anybody/anybodycon-devcontainer:${{ env.ANYBODY_VERSION }}.${{ env.ANYBODY_VERSION_PATCH }}${{ env.ANYBODY_VERSION_SUFFIX }}-${{ env.BUILD_NUMBER }} | |
# ghcr.io/anybody/anybodycon-devcontainer:${{ env.ANYBODY_VERSION }}.${{ env.ANYBODY_VERSION_PATCH }}${{ env.ANYBODY_VERSION_SUFFIX }} | |
# ghcr.io/anybody/anybodycon-devcontainer:${{ env.ANYBODY_VERSION }}${{ env.ANYBODY_VERSION_SUFFIX }} | |
# ghcr.io/anybody/anybodycon-devcontainer:latest${{ env.ANYBODY_VERSION_SUFFIX }} | |
# labels: | | |
# org.opencontainers.image.title="anybodycon-devcontainer" | |
# org.opencontainers.image.description="This is the slim anybodycon image configured for Development Containers, like for example GitHub Codespaces and similar services" | |
# org.opencontainers.image.version="${{ env.ANYBODY_VERSION }}.${{ env.ANYBODY_VERSION_PATCH }}${{ env.ANYBODY_VERSION_SUFFIX }}" | |
# org.opencontainers.image.url="https://github.com/AnyBody/anybody-container/pkgs/container/anybodycon-devcontainer" | |
# org.opencontainers.image.licenses="https://www.anybodytech.com/legal/software-license-agreement/" | |