Tag image versions to mirror FlexGet releases
Bump FlexGet to 3.1.26
This commit is contained in:
parent
d7660b08b0
commit
b37a2cce2c
@ -2,7 +2,9 @@ version: 2
|
|||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
environment:
|
environment:
|
||||||
IMAGE_NAME: wastrachan/flexget
|
REPO_NAME: "wastrachan"
|
||||||
|
IMAGE_NAME: "flexget"
|
||||||
|
IMAGE_VERSION: "3.1.26"
|
||||||
docker:
|
docker:
|
||||||
- image: docker:latest
|
- image: docker:latest
|
||||||
steps:
|
steps:
|
||||||
@ -15,13 +17,16 @@ jobs:
|
|||||||
- run:
|
- run:
|
||||||
name: Build image
|
name: Build image
|
||||||
command: |
|
command: |
|
||||||
docker build -t $IMAGE_NAME:latest .
|
docker build --build-arg FLEXGET_VERSION=$IMAGE_VERSION -t $IMAGE_NAME .
|
||||||
|
docker tag $IMAGE_NAME $REPO_NAME/$IMAGE_NAME:$IMAGE_VERSION
|
||||||
|
docker tag $IMAGE_NAME $REPO_NAME/$IMAGE_NAME:latest
|
||||||
- deploy:
|
- deploy:
|
||||||
name: Publish image
|
name: Publish image
|
||||||
command: |
|
command: |
|
||||||
if [ "${CIRCLE_BRANCH}" == "master" ]; then
|
if [ "${CIRCLE_BRANCH}" == "master" ]; then
|
||||||
echo "$DOCKERHUB_PASS" | docker login -u "$DOCKERHUB_USERNAME" --password-stdin
|
echo "$DOCKERHUB_PASS" | docker login -u "$DOCKERHUB_USERNAME" --password-stdin
|
||||||
docker push $IMAGE_NAME:latest
|
docker push $REPO_NAME/$IMAGE_NAME:$IMAGE_VERSION
|
||||||
|
docker push $REPO_NAME/$IMAGE_NAME:latest
|
||||||
fi
|
fi
|
||||||
|
|
||||||
workflows:
|
workflows:
|
||||||
@ -32,12 +37,3 @@ workflows:
|
|||||||
filters:
|
filters:
|
||||||
branches:
|
branches:
|
||||||
only: master
|
only: master
|
||||||
nightly:
|
|
||||||
triggers:
|
|
||||||
- schedule:
|
|
||||||
cron: "0 0 * * 1,4"
|
|
||||||
filters:
|
|
||||||
branches:
|
|
||||||
only: master
|
|
||||||
jobs:
|
|
||||||
- build
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user