diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 83e061f..ee13e11 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -23,24 +23,24 @@ jobs: # Steps represent a sequence of tasks that will be executed as part of the job steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Set up QEMU - uses: docker/setup-qemu-action@v1 + uses: docker/setup-qemu-action@v3 - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 + uses: docker/setup-buildx-action@v3 - name: Login to Registry - uses: docker/login-action@v1 + uses: docker/login-action@v3 with: # registry: docker.pkg.github.com registry: ghcr.io username: ${{ github.actor }} - password: ${{ secrets.GIT_CREDENTIALS }} + password: ${{ secrets.GITHUB_TOKEN }} - name: Cache Docker layers - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: /tmp/.buildx-cache key: ${{ runner.os }}-buildx-${{ github.sha }} @@ -51,8 +51,6 @@ jobs: context: . platforms: linux/amd64,linux/arm64 push: true - cache-from: | - type=gha - cache-to: | - type=gha tags: ghcr.io/${{ github.repository }}/marne-bot:latest + cache-from: type=gha + cache-to: type=gha,mode=max