Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
Update build-deb.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
rishabh6788 authored Dec 17, 2019
1 parent 0e2ccec commit 3f94420
Showing 1 changed file with 29 additions and 30 deletions.
59 changes: 29 additions & 30 deletions .github/workflows/build-deb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,44 +77,43 @@ jobs:
run: |
echo "deb http://repo.aptly.info/ squeeze main" | sudo tee -a /etc/apt/sources.list.d/aptly.list
sudo apt-get install -y gnupg1
sudo apt install -y gpgv1
alias gpg=gpg1
wget -qO - https://www.aptly.info/pubkey.txt | sudo apt-key add -
#sudo apt-get install -y gnupg1
#sudo apt install -y gpgv1
#alias gpg=gpg1
#wget -qO - https://www.aptly.info/pubkey.txt | sudo apt-key add -
sudo apt-get update -y
sudo apt-get install -y aptly
aws s3 cp s3://opendistro-docs/github-actions/pgp-public-key .
aws s3 cp s3://opendistro-docs/github-actions/pgp-private-key .
#sudo apt-get update -y
#sudo apt-get install -y aptly
#aws s3 cp s3://opendistro-docs/github-actions/pgp-public-key .
#aws s3 cp s3://opendistro-docs/github-actions/pgp-private-key .
aptly repo create -distribution=stable -component=main odfe-release
#aptly repo create -distribution=stable -component=main odfe-release
mkdir -p downloads/debs
aws s3 sync s3://artifacts.opendistroforelasticsearch.amazon.com/downloads/debs downloads/debs
aptly repo add odfe-release downloads
#mkdir -p downloads/debs
#aws s3 sync s3://artifacts.opendistroforelasticsearch.amazon.com/downloads/debs downloads/debs
#aptly repo add odfe-release downloads
aptly repo show -with-packages odfe-release
aptly snapshot create opendistroforelasticsearch from repo odfe-release
aptly snapshot list
#aptly repo show -with-packages odfe-release
#aptly snapshot create opendistroforelasticsearch from repo odfe-release
#aptly snapshot list
#gpg --import pgp-public-key
#gpg --allow-secret-key-import --import pgp-private-key
#echo "Printing Secret List"
#ls -ltr ~/.gnupg/
#gpg --list-secret
gpg --import pgp-public-key
gpg --allow-secret-key-import --import pgp-private-key
echo "Printing Secret List"
ls -ltr ~/.gnupg/
gpg --list-secret
aptly publish snapshot -batch=true -passphrase=$passphrase opendistroforelasticsearch
#aptly publish snapshot -batch=true -passphrase=$passphrase opendistroforelasticsearch
ls -ltrh ~/.aptly/public/dists/stable/main/binary-amd64/
cat ~/.aptly/public/dists/stable/main/binary-amd64/Packages
#ls -ltrh ~/.aptly/public/dists/stable/main/binary-amd64/
#cat ~/.aptly/public/dists/stable/main/binary-amd64/Packages
aws s3 sync ~/.aptly/public/ s3://artifacts.opendistroforelasticsearch.amazon.com/staging/apt
#aws s3 sync ~/.aptly/public/ s3://artifacts.opendistroforelasticsearch.amazon.com/staging/apt
aws s3 sync ~/.aptly/public/ s3://artifacts.opendistroforelasticsearch.amazon.com/apt
#aws s3 sync ~/.aptly/public/ s3://artifacts.opendistroforelasticsearch.amazon.com/apt
aws cloudfront create-invalidation --distribution-id E1VG5HMIWI4SA2 --paths "/staging/apt/*"
aws cloudfront create-invalidation --distribution-id E1VG5HMIWI4SA2 --paths "/apt/*"
#aws cloudfront create-invalidation --distribution-id E1VG5HMIWI4SA2 --paths "/staging/apt/*"
#aws cloudfront create-invalidation --distribution-id E1VG5HMIWI4SA2 --paths "/apt/*"
test-deb-artifacts:
needs: [sign-deb-artifacts]
Expand All @@ -136,7 +135,7 @@ jobs:
sudo sudo apt install -y net-tools
wget -qO - https://d3g5vo6xdbdb9a.cloudfront.net/GPG-KEY-opendistroforelasticsearch | sudo apt-key add -
echo "deb https://d3g5vo6xdbdb9a.cloudfront.net/staging/apt stable main" | sudo tee -a /etc/apt/sources.list.d/opendistroforelasticsearch.list
echo "deb https://d3g5vo6xdbdb9a.cloudfront.net/apt stable main" | sudo tee -a /etc/apt/sources.list.d/opendistroforelasticsearch.list
wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-oss-7.3.2-amd64.deb
sudo dpkg -i elasticsearch-oss-7.3.2-amd64.deb
Expand Down Expand Up @@ -181,7 +180,7 @@ jobs:
sudo sudo apt install -y net-tools
wget -qO - https://d3g5vo6xdbdb9a.cloudfront.net/GPG-KEY-opendistroforelasticsearch | sudo apt-key add -
echo "deb https://d3g5vo6xdbdb9a.cloudfront.net/staging/apt stable main" | sudo tee -a /etc/apt/sources.list.d/opendistroforelasticsearch.list
echo "deb https://d3g5vo6xdbdb9a.cloudfront.net/apt stable main" | sudo tee -a /etc/apt/sources.list.d/opendistroforelasticsearch.list
wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-oss-7.3.2-amd64.deb
sudo dpkg -i elasticsearch-oss-7.3.2-amd64.deb
Expand Down

0 comments on commit 3f94420

Please sign in to comment.