Skip to content

Commit 1f0bf50

Browse files
authored
Merge pull request #262 from paranerd/master
Fix authentication issue in Docker container
2 parents d835d47 + eb44c73 commit 1f0bf50

File tree

2 files changed

+15
-6
lines changed

2 files changed

+15
-6
lines changed

.github/workflows/docker.yml

+8-6
Original file line numberDiff line numberDiff line change
@@ -38,24 +38,26 @@ jobs:
3838

3939
steps:
4040
- name: Checkout repository
41-
uses: actions/checkout@v3
41+
uses: actions/checkout@v4
42+
with:
43+
persist-credentials: false
4244

4345
- name: Set up QEMU
44-
uses: docker/setup-qemu-action@v2
46+
uses: docker/setup-qemu-action@v3
4547

4648
- name: Set up Docker Buildx
47-
uses: docker/setup-buildx-action@v2
49+
uses: docker/setup-buildx-action@v3
4850

4951
- name: Log in to the Container registry
50-
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
52+
uses: docker/login-action@v3
5153
with:
5254
registry: ${{ env.REGISTRY }}
5355
username: ${{ github.actor }}
5456
password: ${{ secrets.GITHUB_TOKEN }}
5557

5658
- name: Extract metadata (tags, labels) for Docker
5759
id: meta
58-
uses: docker/metadata-action@v4
60+
uses: docker/metadata-action@v5
5961
with:
6062
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
6163
tags: |
@@ -66,7 +68,7 @@ jobs:
6668
type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', 'main') }}
6769
6870
- name: Build and push Docker image
69-
uses: docker/build-push-action@v4
71+
uses: docker/build-push-action@v5
7072
with:
7173
context: .
7274
push: true

README.rst

+7
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,13 @@ When you use the ``--lfs`` option, you will need to make sure you have Git LFS i
212212
Instructions on how to do this can be found on https://git-lfs.github.com.
213213

214214

215+
Run in Docker container
216+
-----------------------
217+
218+
To run the tool in a Docker container use the following command:
219+
220+
sudo docker run --rm -v /path/to/backup:/data --name github-backup ghcr.io/josegonzalez/python-github-backup -o /data $OPTIONS $USER
221+
215222
Gotchas / Known-issues
216223
======================
217224

0 commit comments

Comments
 (0)