Skip to content

Container Build And Upload #2

Container Build And Upload

Container Build And Upload #2

name: Container Build And Upload
description: |
Builds and uploads to GHCR (GitHub Container Registry) the container used to build the packages
on:
workflow_dispatch:
inputs:
test:
description: no description
type: boolean
default: false
permissions:
contents: read
security-events: write
env:
QCOM_ORG_NAME: "qualcomm-linux"
IMAGE_NAME: "pkg-builder"
jobs:
container-build-and-upload:
runs-on: ubuntu-latest
steps:
- name: Checkout Dockerfile
uses: actions/checkout@v4
with:
sparse-checkout: docker/Dockerfile
sparse-checkout-cone-mode: false # <- Set to off for single file
- name: Authenticate to GHCR
run: echo ${{ secrets.DEB_PKG_BOT_CI_TOKEN }} | docker login ghcr.io -u ${{ vars.DEB_PKG_BOT_CI_USERNAME }} --password-stdin
- name: Build and Tag the Image
run: docker build -t ghcr.io/${{env.QCOM_ORG_NAME}}/${{env.IMAGE_NAME}}:latest .