Update cube-in-box to install the latest version of deafrica-tools (#9) #12
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Docker | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- "**" | |
pull_request: | |
paths: | |
- "Dockerfile" | |
- "requirements.txt" | |
jobs: | |
docker: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout git | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Build and Push latest Docker image tag | |
uses: whoan/docker-build-with-cache-action@v5 | |
with: | |
image_name: digitalearthafrica/cube-in-a-box | |
image_tag: latest | |
username: deafricadockersvs | |
password: ${{ secrets.DEAFRICA_DOCKER_PASSWORD }} | |
push_image_and_stages: on:push | |
- name: Copy a folder to s3 | |
uses: prewk/s3-cp-action@v2 | |
if: ${{ github.event_name == 'push' }} | |
with: | |
aws_access_key_id: ${{ secrets.GA_AWS_ACCESS_KEY_ID }} | |
aws_secret_access_key: ${{ secrets.GA_AWS_SECRET_ACCESS_KEY }} | |
source: 'cube-in-a-box-cloudformation.yml' | |
dest: 's3://deafrica-dev-cfn/cube-in-a-box/cube-in-a-box-cloudformation.yml' | |
flags: --acl public-read | |
aws_region: 'af-south-1' |