diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index fad64bf..a8a49e0 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -60,23 +60,33 @@ jobs: runs-on: ${{ matrix.runner }} steps: - uses: actions/checkout@v6 + - name: Build and test + env: + RUBY_VER: ${{ matrix.ruby.version }} + ARCH: ${{ matrix.arch }} + RUBY_DEV: ${{ matrix.dev }} + WODBY_USER_ID: ${{ matrix.user_id }} + WODBY_GROUP_ID: ${{ matrix.group_id }} + run: | + make + make test - uses: docker/login-action@v4 + 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: RUBY_VER: ${{ matrix.ruby.version }} ARCH: ${{ matrix.arch }} RUBY_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