From 7e54e389c5ecc1bff2dfed71d523b31f33e2428d Mon Sep 17 00:00:00 2001 From: Melekhin Anton Date: Sat, 29 Jun 2024 23:03:51 +0400 Subject: [PATCH] ci: add `dockerhub-description` workflow --- .github/workflows/dockerhub-description.yml | 21 ++++++++++++++++++ README.md | 24 ++++++++++----------- 2 files changed, 33 insertions(+), 12 deletions(-) create mode 100644 .github/workflows/dockerhub-description.yml diff --git a/.github/workflows/dockerhub-description.yml b/.github/workflows/dockerhub-description.yml new file mode 100644 index 0000000..58d88c1 --- /dev/null +++ b/.github/workflows/dockerhub-description.yml @@ -0,0 +1,21 @@ +name: 'Update DockerHub Description' +on: + push: + branches: ['main'] + paths: + - 'README.md' + - '.github/workflows/dockerhub-description.yml' +jobs: + dockerHubDescription: + runs-on: 'ubuntu-latest' + steps: + - name: 'Checkout the codebase' + uses: 'actions/checkout@v4' + + - name: 'DockerHub Description' + uses: 'peter-evans/dockerhub-description@v4' + with: + username: 'antmelekhin' + password: ${{ secrets.DOCKER_HUB_TOKEN }} + short-description: ${{ github.event.repository.description }} + enable-url-completion: true diff --git a/README.md b/README.md index 0692ccb..d3cea2b 100644 --- a/README.md +++ b/README.md @@ -34,35 +34,35 @@ Ubuntu: ```yaml --- dependency: - name: galaxy + name: 'galaxy' enabled: true driver: - name: docker + name: 'docker' platforms: - name: 'instance-ubuntu' image: 'antmelekhin/docker-systemd:ubuntu-22.04' volumes: - - /sys/fs/cgroup:/sys/fs/cgroup:rw - - /var/lib/containerd - cgroupns_mode: host + - '/sys/fs/cgroup:/sys/fs/cgroup:rw' + - '/var/lib/containerd' + cgroupns_mode: 'host' privileged: true pre_build_image: true groups: - - debian_family + - 'debian_family' - name: 'instance-rocky' image: 'antmelekhin/docker-systemd:rockylinux-9' volumes: - - /sys/fs/cgroup:/sys/fs/cgroup:rw - - /var/lib/containerd - cgroupns_mode: host + - '/sys/fs/cgroup:/sys/fs/cgroup:rw' + - '/var/lib/containerd' + cgroupns_mode: 'host' privileged: true pre_build_image: true groups: - - rhel_family + - 'rhel_family' provisioner: - name: ansible + name: 'ansible' verifier: - name: ansible + name: 'ansible' ``` ## License