forked from efrecon/docker-s3fs-client
-
Notifications
You must be signed in to change notification settings - Fork 0
80 lines (78 loc) · 2.11 KB
/
docker.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
name: Docker Images
on:
workflow_dispatch:
push:
branches:
- main
- master
schedule:
- cron: "0 0 * * *"
jobs:
ghcr:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v3
with:
submodules: true
-
name: Login to GHCR
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
-
name: Set up QEMU
uses: docker/setup-qemu-action@v2
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
with:
driver-opts: image=moby/buildkit:master
-
name: Build GHCR images
env:
DOCKER_REPO: ghcr.io/${{ github.actor }}/s3fs
SOURCE_COMMIT: ${{ github.sha }}
run: ./hooks/build
hub:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v3
with:
submodules: true
-
name: Login to Docker Hub
uses: docker/login-action@v2
with:
registry: docker.io
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Set up QEMU
uses: docker/setup-qemu-action@v2
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
with:
driver-opts: image=moby/buildkit:master
-
name: Build Docker Hub images
env:
DOCKER_REPO: docker.io/efrecon/s3fs
SOURCE_COMMIT: ${{ github.sha }}
run: ./hooks/build
-
# Note: This uses the password, not the token as this action would
# otherwise not work.
name: Update repo description at Docker Hub
uses: peter-evans/dockerhub-description@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
repository: efrecon/s3fs
short-description: Mount S3 buckets from within a container and expose them to host/containers