mirror of
https://github.com/nikdoof/cups-avahi-airprint.git
synced 2025-12-11 22:52:21 +00:00
Update buildspec-manifest.yml
This commit is contained in:
@@ -2,26 +2,30 @@ version: 0.2
|
|||||||
# Based on the Docker documentation, must include the DOCKER_CLI_EXPERIMENTAL environment variable
|
# Based on the Docker documentation, must include the DOCKER_CLI_EXPERIMENTAL environment variable
|
||||||
# https://docs.docker.com/engine/reference/commandline/manifest/
|
# https://docs.docker.com/engine/reference/commandline/manifest/
|
||||||
|
|
||||||
|
env:
|
||||||
|
secrets-manager:
|
||||||
|
DOCKERHUB_PASS: "/dockerhub/credentials:password"
|
||||||
|
DOCKERHUB_USERNAME: "/dockerhub/credentials:username"
|
||||||
phases:
|
phases:
|
||||||
install:
|
install:
|
||||||
commands:
|
commands:
|
||||||
- yum update -y
|
- yum update -y
|
||||||
pre_build:
|
pre_build:
|
||||||
commands:
|
commands:
|
||||||
- echo Logging in to Amazon ECR...
|
- echo Logging in to DOCKER...
|
||||||
- $(aws ecr get-login --no-include-email --region $AWS_DEFAULT_REGION)
|
- docker login --username $DOCKERHUB_USERNAME --password $DOCKERHUB_PASS
|
||||||
build:
|
build:
|
||||||
commands:
|
commands:
|
||||||
- echo Build started on `date`
|
- echo Build started on `date`
|
||||||
- echo Building the Docker manifest...
|
- echo Building the Docker manifest...
|
||||||
- export DOCKER_CLI_EXPERIMENTAL=enabled
|
- export DOCKER_CLI_EXPERIMENTAL=enabled
|
||||||
- docker manifest create $AWS_ACCOUNT_ID.dkr.ecr.$AWS_DEFAULT_REGION.amazonaws.com/$IMAGE_REPO_NAME $AWS_ACCOUNT_ID.dkr.ecr.$AWS_DEFAULT_REGION.amazonaws.com/$IMAGE_REPO_NAME:latest-arm64 $AWS_ACCOUNT_ID.dkr.ecr.$AWS_DEFAULT_REGION.amazonaws.com/$IMAGE_REPO_NAME:latest-amd64
|
- docker manifest create $IMAGE_REPO_NAME $IMAGE_REPO_NAME:latest-arm64 $IMAGE_REPO_NAME:latest-amd64
|
||||||
- docker manifest annotate --arch arm64 $AWS_ACCOUNT_ID.dkr.ecr.$AWS_DEFAULT_REGION.amazonaws.com/$IMAGE_REPO_NAME $AWS_ACCOUNT_ID.dkr.ecr.$AWS_DEFAULT_REGION.amazonaws.com/$IMAGE_REPO_NAME:latest-arm64
|
- docker manifest annotate --arch arm64 $IMAGE_REPO_NAME $IMAGE_REPO_NAME:latest-arm64
|
||||||
- docker manifest annotate --arch amd64 $AWS_ACCOUNT_ID.dkr.ecr.$AWS_DEFAULT_REGION.amazonaws.com/$IMAGE_REPO_NAME $AWS_ACCOUNT_ID.dkr.ecr.$AWS_DEFAULT_REGION.amazonaws.com/$IMAGE_REPO_NAME:latest-amd64
|
- docker manifest annotate --arch amd64 $IMAGE_REPO_NAME $IMAGE_REPO_NAME:latest-amd64
|
||||||
|
|
||||||
post_build:
|
post_build:
|
||||||
commands:
|
commands:
|
||||||
- echo Build completed on `date`
|
- echo Build completed on `date`
|
||||||
- echo Pushing the Docker image...
|
- echo Pushing the Docker image...
|
||||||
- docker manifest push $AWS_ACCOUNT_ID.dkr.ecr.$AWS_DEFAULT_REGION.amazonaws.com/$IMAGE_REPO_NAME
|
- docker manifest push $IMAGE_REPO_NAME
|
||||||
- docker manifest inspect $AWS_ACCOUNT_ID.dkr.ecr.$AWS_DEFAULT_REGION.amazonaws.com/$IMAGE_REPO_NAME
|
- docker manifest inspect $IMAGE_REPO_NAME
|
||||||
|
|||||||
Reference in New Issue
Block a user