diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 00000000..88aa3987 --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1,6 @@ +# People marked here will be automatically requested for a review +# when the code that they own is touched. +# https://github.com/blog/2392-introducing-code-owners +# https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners + +* @vtsykun diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 00000000..63efcccc --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,7 @@ +version: 2 +updates: + - package-ecosystem: github-actions + directory: / + schedule: + interval: weekly + labels: [] diff --git a/.github/workflows/docker_hub.yaml b/.github/workflows/docker_hub.yaml index b084c72b..1da1208c 100644 --- a/.github/workflows/docker_hub.yaml +++ b/.github/workflows/docker_hub.yaml @@ -15,57 +15,46 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up QEMU - uses: docker/setup-qemu-action@v2 + uses: docker/setup-qemu-action@v3 with: platforms: arm64 - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 - - - name: Cache Docker layers - uses: actions/cache@v3 - with: - path: /tmp/.buildx-cache-qemu - key: ${{ runner.os }}-buildx-cache-qemu + uses: docker/setup-buildx-action@v3 - name: Login to Docker Hub - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Calculate docker image tag - id: set-tag - uses: docker/metadata-action@master + id: docker_meta + uses: docker/metadata-action@v5 with: images: packeton/packeton flavor: | latest=false tags: | type=raw,value=latest,enable=${{ github.ref == 'refs/heads/master' }} - type=pep440,pattern={{major}}.{{minor}} + type=pep440,pattern={{ version }} + type=pep440,pattern={{ major }}.{{ minor }} - name: Build and push - uses: docker/build-push-action@v4 + uses: docker/build-push-action@v5 with: context: . -# file: "Dockerfile" + file: Dockerfile push: true - tags: "${{ steps.set-tag.outputs.tags }}" + tags: ${{ steps.docker_meta.outputs.tags }} + labels: ${{ steps.docker_meta.outputs.labels }} platforms: linux/amd64,linux/arm64 - cache-from: type=local,src=/tmp/.buildx-cache-qemu - cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max + cache-from: type=gha,scope=${{ github.workflow }} + cache-to: type=gha,scope=${{ github.workflow }},mode=max # Issue https://github.com/rust-lang/cargo/issues/10583 build-args: | CARGO_NET_GIT_FETCH_WITH_CLI=true - - # https://github.com/docker/build-push-action/issues/252 - # https://github.com/moby/buildkit/issues/1896 - - name: Move cache - run: | - rm -rf /tmp/.buildx-cache-qemu - mv /tmp/.buildx-cache-new /tmp/.buildx-cache-qemu