diff --git a/.github/workflows/docker-build-push.yaml b/.github/workflows/docker-build-push.yaml index 3e3b0ac..405e2f8 100644 --- a/.github/workflows/docker-build-push.yaml +++ b/.github/workflows/docker-build-push.yaml @@ -45,31 +45,15 @@ jobs: build-ecran: needs: [version, build-ecran-migrator] - runs-on: arc-arm64 - defaults: - run: - working-directory: services/ecran - steps: - - name: Checkout - uses: actions/checkout@v4 - - - name: Login to Container Registry - uses: docker/login-action@v3 - with: - registry: kalmyk.duckdns.org - username: ${{ secrets.REGISTRY_USERNAME }} - password: ${{ secrets.REGISTRY_TOKEN }} - - - name: Package into Docker image - uses: docker/build-push-action@v6 - with: - push: true - context: services/ecran - file: services/ecran/Dockerfile.package - platforms: linux/arm64 - tags: kalmyk.duckdns.org/lab/ecran:${{ needs.version.outputs.new_tag }} - cache-from: type=registry,ref=kalmyk.duckdns.org/lab/ecran:latest - cache-to: type=inline + uses: ./.github/workflows/docker-build-common.yaml + with: + image_name: ecran + dockerfile: ./services/ecran/Dockerfile + context: ./services/ecran + new_tag: ${{ needs.version.outputs.new_tag }} + secrets: + REGISTRY_USERNAME: ${{ secrets.REGISTRY_USERNAME }} + REGISTRY_TOKEN: ${{ secrets.REGISTRY_TOKEN }} build-ecran-worker: needs: [version, build-ecran-migrator]