diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7436ed0..a2ea755 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -56,25 +56,14 @@ pages: paths: - public/ -# Deploys to the main blog -# TODO: make sure this works with the latest infrastructure as the -# server is used to deploy to is now gone -#deploy-shockrah.xyz: -# stage: deploy -# image: shockrah/ansible:latest -# needs: -# - build-shockrah.xyz -# dependencies: -# - build-shockrah.xyz -# before_script: -# - eval "$(ssh-agent -s)" -# - echo "${CI_USER_KEY}" | tr -d '\r' | ssh-add - -# - mkdir -p ~/.ssh/ -# - chmod 700 ~/.ssh/ -# - ssh-keyscan shockrah.xyz 2>&1 >> ~/.ssh/known_hosts -# - chmod 644 ~/.ssh/known_hosts -# script: -# - ansible-playbook -i $INVENTORY scripts/deploy-blog.yml +deploy-shockrah.xyz: + stage: deploy + image: amazon/aws-cli:2.2.25 + needs: + - build-shockrah.xyz + before_script: + - bash scripts/verify-aws-fields.sh + - aws s3 cp public/ s3://shockrah-xyz-static-content/ --recursive # Deploy to neocities via their curl api