diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index 5d0cffe..f772ab6 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -64,23 +64,33 @@ jobs: runs-on: ${{ matrix.runner }} steps: - uses: actions/checkout@v6 + - name: Build and test + env: + PYTHON_VER: ${{ matrix.python.version }} + ARCH: ${{ matrix.arch }} + PYTHON_DEV: ${{ matrix.dev }} + WODBY_USER_ID: ${{ matrix.user_id }} + WODBY_GROUP_ID: ${{ matrix.group_id }} + run: | + make + make test - uses: docker/login-action@v3 + if: github.event_name == 'push' with: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} - - name: build and push + - name: Push architecture image + if: github.event_name == 'push' env: PYTHON_VER: ${{ matrix.python.version }} ARCH: ${{ matrix.arch }} PYTHON_DEV: ${{ matrix.dev }} WODBY_USER_ID: ${{ matrix.user_id }} WODBY_GROUP_ID: ${{ matrix.group_id }} - run: | - make - make test - make push + run: make push push: + if: github.event_name == 'push' runs-on: ubuntu-latest needs: - setup