Skip to content

Commit

Permalink
update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentsarago committed Nov 28, 2023
1 parent f9d0ad8 commit 90dee90
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 7 deletions.
25 changes: 18 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,18 +64,32 @@ jobs:
--rm ghcr.io/${{ github.repository_owner }}/lambda-gdal:${{ matrix.gdal-version }} \
/local/tests/tests.sh
# Publish
deploy:
needs: [build]
runs-on: ubuntu-latest
if: contains(github.ref, 'tags') && github.event_name == 'push'
steps:
- uses: actions/checkout@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Login to Github
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
if: github.ref == 'refs/heads/master'
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-1

- name: Publish docker image
uses: docker/build-push-action@v3
if: github.ref == 'refs/heads/master'
with:
platforms: linux/amd64
context: .
Expand All @@ -85,7 +99,6 @@ jobs:
tags: ghcr.io/${{ github.repository_owner }}/lambda-gdal:${{ matrix.gdal-version }}

- name: Build and Deploy layers
if: github.ref == 'refs/heads/master'
run: |
docker run \
--platform=linux/amd64 \
Expand All @@ -96,7 +109,6 @@ jobs:
python scripts/deploy.py ${{ matrix.gdal-version }} --deploy
- name: Build Runtime and Push
if: github.ref == 'refs/heads/master'
run: |
runtimes='3.9 3.10 3.11'
for runtime in ${runtimes}; do
Expand All @@ -110,9 +122,8 @@ jobs:
done
update-layer:
needs: [build]
needs: [deploy]
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/master'
steps:
- uses: actions/checkout@v2

Expand Down
7 changes: 7 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@

## 2023-10-23

- update Python 3.11 base image (https://github.com/lambgeo/docker-lambda/pull/60)



0 comments on commit 90dee90

Please sign in to comment.