From 6fc7dc944ae74496dbf3dc5986467baada979b07 Mon Sep 17 00:00:00 2001 From: JustSKY <71321862+Just5KY@users.noreply.github.com> Date: Wed, 16 Nov 2022 06:05:59 +0530 Subject: [PATCH] gh action + dependabot --- .github/dependabot.yml | 15 ++++++++++ .github/workflows/docker.yml | 58 ++++++++++++++++++++++++++++++++++++ README.md | 9 ++++++ 3 files changed, 82 insertions(+) create mode 100644 .github/dependabot.yml create mode 100644 .github/workflows/docker.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..e1fddb9 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,15 @@ +version: 2 +updates: + # Maintain dependencies for GitHub Actions + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "daily" + + - package-ecosystem: "docker" + directory: "/" + schedule: + interval: "daily" + + +# https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file#package-ecosystem \ No newline at end of file diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml new file mode 100644 index 0000000..e6f6ab8 --- /dev/null +++ b/.github/workflows/docker.yml @@ -0,0 +1,58 @@ +name: Docker + +on: + workflow_dispatch: + schedule: + - cron: "0 0 * * 1" + push: + branches: + - latest + +jobs: + build: + name: build + runs-on: ubuntu-latest + + permissions: + packages: write + contents: read + + steps: + - name: Check out the repo + uses: actions/checkout@v3 + + - name: Set up QEMU + uses: docker/setup-qemu-action@v2 + + - name: Setup Docker buildx + uses: docker/setup-buildx-action@v2 + + - name: Log in to Docker Hub + uses: docker/login-action@v2 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + +# - name: Log in to the Container registry +# uses: docker/login-action@v2 +# with: +# registry: ghcr.io +# username: ${{ github.actor }} +# password: ${{ secrets.GIT_TOKEN }} + + - name: Extract metadata (tags, labels) for Docker + id: meta + uses: docker/metadata-action@v4 + with: + images: | + ${{ secrets.DOCKERHUB_USERNAME }}/${{ github.repository }} +# ghcr.io/${{ github.repository }} + + - name: Build and push Docker images + uses: docker/build-push-action@v3 + with: + context: . + platforms: linux/amd64,linux/arm64,linux/arm/v7 #,linux/arm/v6, linux/386, linux/ppc64le,linux/s390x + push: true + tags: ${{ steps.meta.outputs.tags }} + labels: ${{ steps.meta.outputs.labels }} diff --git a/README.md b/README.md index 8c983dc..bb25750 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,17 @@ # Alpine xfce4 noVNC Simple and minimal Alpine Docker Image providing XFCE4 through html5 noVNC connection +