Skip to content

building container - code cli #33

building container - code cli

building container - code cli #33

name: build container - code cli
run-name: building container - code cli
on:
workflow_dispatch:
jobs:
build:
name: build-container-code
permissions:
contents: read
packages: write
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Run podman build - code-cli
run: |
podman build -t ghcr.io/gbraad-devenv/ubi/code-cli:9 \
--build-arg=BASE_IMAGE="ghcr.io/gbraad-devenv/ubi/systemd" \
--build-arg=BASE_VERSION="9" \
-f containers/Containerfile-code-cli .
- name: Login to ghcr.io
run: |
podman login ghcr.io -u ${{ github.actor }} \
-p ${{ secrets.GITHUB_TOKEN }}
- name: Push image to ghcr.io - code-cli
run: |
podman push ghcr.io/gbraad-devenv/ubi/code-cli:9