Skip to content

tmp

tmp #3

Workflow file for this run

name: Docker
on:
push:
branches:
- 'master'
tags:
- 'v*'
jobs:
docker:
runs-on: ubuntu-latest
permissions:
packages: write
steps:
- uses: actions/checkout@v4
# - name: Login to GitHub Container Registry
# uses: docker/login-action@v3
# with:
# registry: ghcr.io
# username: ${{ github.actor }}
# password: ${{ secrets.GITHUB_TOKEN }}
- name: Build the Docker image
run: |
docker compose build base
docker compose build shell-*
docker compose build shell
# tag=latest
# [[ "$GITHUB_REF" =~ ^refs/tags/ ]] && tag="${GITHUB_REF/refs\/tags\//}"
# docker build base --tag "ghcr.io/carapace-sh/base:${tag}"
# docker build shell-bash-ble --tag "ghcr.io/carapace-sh/shell-bash-ble:${tag}"
# docker build shell-elvish --tag "ghcr.io/carapace-sh/shell-elvish:${tag}"
# docker build shell-fish --tag "ghcr.io/carapace-sh/shell-fish:${tag}"
# docker build shell-nushell --tag "ghcr.io/carapace-sh/shell-nushell:${tag}"
# docker build shell-oil --tag "ghcr.io/carapace-sh/shell-oil:${tag}"
# docker build shell-powershell --tag "ghcr.io/carapace-sh/shell-powershell:${tag}"
# docker build shell-xonsh --tag "ghcr.io/carapace-sh/shell-xonsh:${tag}"
# docker build shell-zsh --tag "ghcr.io/carapace-sh/shell-zsh:${tag}"
# docker push "ghcr.io/carapace-sh/carapace:${tag}"