Skip to content

Switch to the apk package for the aws cli now that it's available. St… #89

Switch to the apk package for the aws cli now that it's available. St…

Switch to the apk package for the aws cli now that it's available. St… #89

Workflow file for this run

name: CI
on:
push:
branches: [ "main" ]
paths:
- '**'
- '!CHANGELOG.md'
workflow_dispatch:
env:
TEST_TAG: kiefm/spin-dojo-image:test
VERSION_NUMBER: _unset_
jobs:
docker:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v3
-
name: Set version
id: version
run: echo "VERSION_NUMBER=$(./tasks get_version)-$( date "+%Y%m%d%H%M%S")" >> $GITHUB_ENV
-
name: Set up QEMU
uses: docker/setup-qemu-action@v2
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
-
name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and export to Docker
uses: docker/build-push-action@v3
with:
context: .
load: true
platforms: linux/amd64
build-args: EXTERNAL_VERSION_NUMBER=${{ env.VERSION_NUMBER }}
tags: ${{ env.TEST_TAG }}
-
name: Install dojo
run: |
mkdir -p ./bin
wget -O ./bin/dojo https://github.com/kudulab/dojo/releases/download/0.11.0/dojo_linux_amd64
chmod +x ./bin/dojo
-
name: Test
run: |
echo "DOJO_DOCKER_IMAGE=${{ env.TEST_TAG }}" > ./Dojofile.to_be_tested
echo "DOJO_IDENTITY_OUTER=./test/integration/identities/full" >> ./Dojofile.to_be_tested
echo "DOJO_WORK_OUTER=./test/integration/test_dojo_work" >> ./Dojofile.to_be_tested
./bin/dojo --docker-options="--platform linux/amd64" \
-c ./Dojofile.to_be_tested \
"time bats /opt/spin-dojo/test"
-
name: Build and push
uses: docker/build-push-action@v3
with:
platforms: linux/amd64
push: true
build-args: EXTERNAL_VERSION_NUMBER=${{ env.VERSION_NUMBER }}
tags: kiefm/spin-dojo-image:latest