Skip to content

chore(ci dep)(deps): bump docker/build-push-action from 3 to 5 #74

chore(ci dep)(deps): bump docker/build-push-action from 3 to 5

chore(ci dep)(deps): bump docker/build-push-action from 3 to 5 #74

Workflow file for this run

name: Linting & Execute Integration Test in the Container
on:
push:
branches:
- dependabot/** #branches are generated by https://github.com/dependabot
pull_request:
types:
- opened
- synchronize
jobs:
build-docker-image:
name: Step 1 - Workflow Call
secrets: "inherit"
uses: ./.github/workflows/build-container.yml
test:
env:
image_name: ghcr.io/${{ github.repository }}/rtldev_mid_dnscontrol:latest
docker_options: |
--name dstack-dnscontrol
--volume ${{ github.workspace }}:/usr/share/rtldev-middleware-dnscontrol-dnsconfig:cached
docker_exec_commands: |
cd /usr/share/rtldev-middleware-dnscontrol-dnsconfig
export GITHUB_CLI=true
zsh /post-create.sh && zsh ./tests/integration.sh
name: Step 2 - Linting & Testing
runs-on: ubuntu-latest
needs: build-docker-image
timeout-minutes: 12
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
fetch-depth: 0
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Run Tests & Lint codebase in a docker Container
run: |
DOCKER_OPTS=${docker_options//$'\n'/' '}
docker run -dit $DOCKER_OPTS ${{ env.image_name }}
docker exec dstack-dnscontrol zsh -c "su - vscode -c \"${docker_exec_commands//$'\n'/';'}\""