mirror of
https://bitbucket.org/atlassian-docker/docker-atlassian-confluence-server.git
synced 2024-08-30 18:22:16 +00:00
Remove unused / old files
This commit is contained in:
parent
a07beb781b
commit
423e1acd66
@ -1,32 +0,0 @@
|
|||||||
import logging
|
|
||||||
import os
|
|
||||||
|
|
||||||
import requests
|
|
||||||
|
|
||||||
|
|
||||||
logging.basicConfig(level=logging.INFO)
|
|
||||||
|
|
||||||
|
|
||||||
DOCKER_REPO = os.environ.get('DOCKER_REPO')
|
|
||||||
DOCKER_USERNAME = os.environ.get('DOCKER_USERNAME')
|
|
||||||
DOCKER_PASSWORD = os.environ.get('DOCKER_PASSWORD')
|
|
||||||
README_FILE = os.environ.get('README_FILE') or 'README.md'
|
|
||||||
|
|
||||||
|
|
||||||
logging.info('Generating Docker Hub JWT')
|
|
||||||
data = {'username': DOCKER_USERNAME, 'password': DOCKER_PASSWORD}
|
|
||||||
r = requests.post('https://hub.docker.com/v2/users/login/', json=data)
|
|
||||||
docker_token = r.json().get('token')
|
|
||||||
|
|
||||||
logging.info(f'Updating Docker Hub description for {DOCKER_REPO}')
|
|
||||||
with open(README_FILE) as f:
|
|
||||||
full_description = f.read()
|
|
||||||
data = {'registry': 'registry-1.docker.io', 'full_description': full_description}
|
|
||||||
headers = {'Authorization': f'JWT {docker_token}'}
|
|
||||||
r = requests.patch(f'https://cloud.docker.com/v2/repositories/{DOCKER_REPO}/',
|
|
||||||
json=data, headers=headers)
|
|
||||||
|
|
||||||
if r.status_code == requests.codes.ok:
|
|
||||||
logging.info(f'Successfully updated {README_FILE} for {DOCKER_REPO}')
|
|
||||||
else:
|
|
||||||
logging.info(f'Unable to update {README_FILE} for {DOCKER_REPO}, response code: {r.status_code}')
|
|
@ -1,13 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
set -e
|
|
||||||
|
|
||||||
# Parse image name for repo name
|
|
||||||
tagStart=$(expr index "$IMAGE_NAME" :)
|
|
||||||
repoName=${IMAGE_NAME:0:tagStart-1}
|
|
||||||
|
|
||||||
# Tag and push image for each additional tag
|
|
||||||
for tag in `git tag -l --points-at HEAD`; do
|
|
||||||
docker tag $IMAGE_NAME ${repoName}:${tag}
|
|
||||||
docker push ${repoName}:${tag}
|
|
||||||
done
|
|
@ -1,20 +0,0 @@
|
|||||||
atomicwrites==1.3.0
|
|
||||||
attrs==19.1.0
|
|
||||||
certifi==2019.6.16
|
|
||||||
chardet==3.0.4
|
|
||||||
docker==4.0.2
|
|
||||||
idna==2.8
|
|
||||||
importlib-metadata==0.19
|
|
||||||
more-itertools==7.2.0
|
|
||||||
packaging==19.1
|
|
||||||
pluggy==0.12.0
|
|
||||||
py==1.8.0
|
|
||||||
pyparsing==2.4.2
|
|
||||||
pytest==5.0.1
|
|
||||||
requests==2.22.0
|
|
||||||
six==1.12.0
|
|
||||||
urllib3==1.25.3
|
|
||||||
wcwidth==0.1.7
|
|
||||||
websocket-client==0.56.0
|
|
||||||
zipp==0.5.2
|
|
||||||
testinfra==3.0.6
|
|
Loading…
x
Reference in New Issue
Block a user