diff --git a/.gitea/workflows/node-ssh.yaml b/.gitea/workflows/node-ssh.yaml index 4743f60..977e2e7 100644 --- a/.gitea/workflows/node-ssh.yaml +++ b/.gitea/workflows/node-ssh.yaml @@ -8,18 +8,7 @@ jobs: container: catthehacker/ubuntu:act-latest steps: - - name: Checkout - uses: actions/checkout@v4 - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 - - - name: Login to Docker Registry - uses: docker/login-action@v3 - with: - registry: git.kjan.de - username: ${{ secrets.REGISTRY_USERNAME }} - password: ${{ secrets.REGISTRY_TOKEN }} + - uses: ./.gitea/workflows/setup-builder.yaml - name: Build and push uses: docker/build-push-action@v5 diff --git a/.gitea/workflows/setup-builder.yaml b/.gitea/workflows/setup-builder.yaml new file mode 100644 index 0000000..6ec7569 --- /dev/null +++ b/.gitea/workflows/setup-builder.yaml @@ -0,0 +1,20 @@ +on: + workflow_call + + +jobs: + setup: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: Login to Docker Registry + uses: docker/login-action@v3 + with: + registry: git.kjan.de + username: ${{ secrets.REGISTRY_USERNAME }} + password: ${{ secrets.REGISTRY_TOKEN }}