mirror of
https://github.com/nikdoof/cups-avahi-airprint.git
synced 2025-12-11 17:02:21 +00:00
Update buildspec.yml
This commit is contained in:
@@ -5,10 +5,10 @@ env:
|
|||||||
secrets-manager:
|
secrets-manager:
|
||||||
DOCKERHUB_PASS: "/dockerhub/credentials:password"
|
DOCKERHUB_PASS: "/dockerhub/credentials:password"
|
||||||
DOCKERHUB_USERNAME: "/dockerhub/credentials:username"
|
DOCKERHUB_USERNAME: "/dockerhub/credentials:username"
|
||||||
variables:
|
# variables:
|
||||||
VERSION: $(cat version.txt)
|
# VERSION: $(cat version.txt)
|
||||||
exported-variables:
|
# exported-variables:
|
||||||
- VERSION
|
# - VERSION
|
||||||
phases:
|
phases:
|
||||||
install:
|
install:
|
||||||
commands:
|
commands:
|
||||||
@@ -20,7 +20,8 @@ phases:
|
|||||||
build:
|
build:
|
||||||
commands:
|
commands:
|
||||||
- echo Build started on `date`
|
- echo Build started on `date`
|
||||||
- echo Building the Docker image...
|
- echo Building the Docker image...
|
||||||
|
- VERSION=$(cat version.txt)
|
||||||
- docker build -t $DOCKERHUB_USERNAME/$IMAGE_REPO_NAME:$VERSION .
|
- docker build -t $DOCKERHUB_USERNAME/$IMAGE_REPO_NAME:$VERSION .
|
||||||
- docker tag $DOCKERHUB_USERNAME/$IMAGE_REPO_NAME:$VERSION $DOCKERHUB_USERNAME/$IMAGE_REPO_NAME:$IMAGE_TAG
|
- docker tag $DOCKERHUB_USERNAME/$IMAGE_REPO_NAME:$VERSION $DOCKERHUB_USERNAME/$IMAGE_REPO_NAME:$IMAGE_TAG
|
||||||
post_build:
|
post_build:
|
||||||
|
|||||||
Reference in New Issue
Block a user