Create Lampi export runner image #28
Workflow file for this run
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: Create Lampi export runner image | |
on: | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Source | |
uses: actions/checkout@v4 | |
- name: Clone CI tools | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
shell: bash | |
run: | | |
git clone https://github.com/Opetushallitus/ci-tools.git | |
- name: Build the Docker image | |
run: | | |
source ci-tools/common/setup-tools.sh | |
apt-get install -y qemu qemu-user-static | |
docker buildx ls --no-trunc | |
docker build . --file scripts/lampi-export/Dockerfile --tag ${ECR_REPO}/ehoks-lampi-export:ga-${GITHUB_RUN_NUMBER} --platform linux/arm64/v8 | |
- name: Upload Package | |
shell: bash | |
env: | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
run: | | |
source ci-tools/common/setup-tools.sh | |
./ci-tools/github-build/upload-image.sh ehoks-lampi-export |