diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index b9a1ac5..af00206 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -7,6 +7,11 @@ on: branches: ["release"] jobs: + checkout: + runs-on: ubuntu-latest + steps: + - name: Check out repository code + uses: actions/checkout@v4 tag: runs-on: ubuntu-latest outputs: @@ -19,21 +24,25 @@ jobs: latest_tag=$(git describe --tags $(git rev-list --tags --max-count=1)) echo "tag=$latest_tag" >> "$GITHUB_OUTPUT" echo "💡 Latest tag: $latest_tag" - docker: + docker-QEMU: runs-on: ubuntu-latest - needs: tag steps: - - name: Check out repository code - uses: actions/checkout@v4 - name: Set up QEMU uses: docker/setup-qemu-action@v3 - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 + docker-login: + runs-on: ubuntu-latest + steps: - name: Login to Docker Hub uses: docker/login-action@v3 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} + docker-build: + runs-on: ubuntu-latest + needs: tag + steps: - name: Build and push tag env: TAG: ${{needs.tag.outputs.latest_tag}}