Skip to content

Instantly share code, notes, and snippets.

@sefasenturk95
sefasenturk95 / delete_artifacts.py
Last active October 7, 2021 13:26
Delete artifacts automatically
import json
import urllib.request
import math
access_token = "rqtweyjhg"
org_name = "my-org"
keep_artifacts = 2
def get_all_artifacts(repo_name: str) -> []:
@m8r1x
m8r1x / .gitlab-ci.yml
Created December 11, 2017 20:01 — forked from abdullah353/.gitlab-ci.yml
Basic skeleton of Gitlab CI integration with AWS Lambda for auto deployments.
image: docker:latest
before_script:
- apt-get update -y # Updating the Ubuntu Docker instance.
- python -V # Print out python version for debugging.
- apt install -y zip jq
- pip install awscli --upgrade --user
- export PATH=~/.local/bin:$PATH # Required for awscli.
- aws --version # Print out aws cli version for debugging.