Files
cups-avahi-airprint/buildspec-manifest.yml
2022-07-27 15:01:22 -06:00

32 lines
1.4 KiB
YAML

version: 0.2
# Based on the Docker documentation, must include the DOCKER_CLI_EXPERIMENTAL environment variable
# https://docs.docker.com/engine/reference/commandline/manifest/
env:
secrets-manager:
DOCKERHUB_PASS: "/dockerhub/credentials:password"
DOCKERHUB_USERNAME: "/dockerhub/credentials:username"
phases:
install:
commands:
- yum update -y
pre_build:
commands:
- echo Logging in to DOCKER...
- docker login --username $DOCKERHUB_USERNAME --password $DOCKERHUB_PASS
build:
commands:
- echo Build started on `date`
- echo Building the Docker manifest...
- export DOCKER_CLI_EXPERIMENTAL=enabled
- docker manifest create chuckcharlie/$IMAGE_REPO_NAME chuckcharlie/$IMAGE_REPO_NAME:latest-arm64 chuckcharlie/$IMAGE_REPO_NAME:latest-amd64
- docker manifest annotate --arch arm64 chuckcharlie/$IMAGE_REPO_NAME chuckcharlie/$IMAGE_REPO_NAME:latest-arm64
- docker manifest annotate --arch amd64 chuckcharlie/$IMAGE_REPO_NAME chuckcharlie/$IMAGE_REPO_NAME:latest-amd64
post_build:
commands:
- echo Build completed on `date`
- echo Pushing the Docker image...
- docker manifest push chuckcharlie/$IMAGE_REPO_NAME
- docker manifest inspect chuckcharlie/$IMAGE_REPO_NAME