Skip to content

Commit b45658d

Browse files
committed
refactor(ci): remove alpine ci build
- We don't necessarily use it anywhere at the moment due to issues with the SavReaderWriter package
1 parent ca0aa7e commit b45658d

File tree

1 file changed

+7
-24
lines changed

1 file changed

+7
-24
lines changed

.github/workflows/ecr-image-build.yml

+7-24
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,11 @@ on:
1010
workflow_dispatch:
1111

1212
jobs:
13-
build:
14-
runs-on: ubuntu-20.04
13+
build-ubuntu:
14+
runs-on: ubuntu-latest
15+
strategy:
16+
matrix:
17+
image: ["alpine", "ubuntu"]
1518
steps:
1619
- name: Checkout
1720
uses: actions/checkout@v3
@@ -52,7 +55,7 @@ jobs:
5255
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
5356
run: echo "version=${GITHUB_REF#refs/heads/}" >> $GITHUB_ENV
5457

55-
- name: (Ubuntu) Build and push
58+
- name: Build and push
5659
id: docker-build-ubuntu
5760
uses: docker/build-push-action@v2
5861
with:
@@ -69,29 +72,9 @@ jobs:
6972
tags: |
7073
${{ steps.login-ecr.outputs.registry }}/onaio/onadata:${{ env.version || github.ref_name }}
7174
72-
- name: (Alpine) Build and push
73-
id: docker-build-alpine
74-
uses: docker/build-push-action@v2
75-
with:
76-
context: .
77-
file: ./docker/onadata-uwsgi/Dockerfile.alpine
78-
platforms: linux/amd64
79-
cache-from: type=registry,ref=${{ steps.login-ecr.outputs.registry }}/onaio/onadata:${{ env.version }}-alpine
80-
cache-to: type=inline
81-
ssh: |
82-
default=/tmp/ssh-agent.sock
83-
build-args: |
84-
optional_packages=PyYAML django-redis ${{ secrets.ECR_OPTIONAL_PACKAGES }}
85-
push: true
86-
tags: |
87-
${{ steps.login-ecr.outputs.registry }}/onaio/onadata:${{ env.version || github.ref_name }}-alpine
88-
89-
- name: (Ubuntu) Image digest
75+
- name: Image digest
9076
run: echo ${{ steps.docker-build-ubuntu.outputs.digest }}
9177

92-
- name: (Alpine) Image digest
93-
run: echo ${{ steps.docker-build-alpine.outputs.digest }}
94-
9578
- name: Run Trivy vulnerability scanner
9679
uses: aquasecurity/trivy-action@master
9780
with:

0 commit comments

Comments
 (0)