File tree 3 files changed +72
-1
lines changed
3 files changed +72
-1
lines changed Original file line number Diff line number Diff line change
1
+ name : Build and Publish Docker Image
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - develop
7
+ tags :
8
+ - ' v*'
9
+ pull_request :
10
+ branches :
11
+ - develop
12
+
13
+ env :
14
+ REGISTRY : ghcr.io
15
+ IMAGE_NAME : ${{ github.repository }}
16
+
17
+ jobs :
18
+ build-and-publish :
19
+ runs-on : ubuntu-latest
20
+ permissions :
21
+ contents : read
22
+ packages : write
23
+
24
+ steps :
25
+ - name : Checkout repository
26
+ uses : actions/checkout@v4
27
+
28
+ - name : Set up Go
29
+ uses : actions/setup-go@v5
30
+ with :
31
+ go-version : ' 1.23.2'
32
+
33
+ - name : Log in to the Container registry
34
+ uses : docker/login-action@v3
35
+ with :
36
+ registry : ghcr.io
37
+ username : ${{ github.actor }}
38
+ password : ${{ secrets.GITHUB_TOKEN }}
39
+
40
+ - name : Extract metadata for Docker
41
+ id : meta
42
+ uses : docker/metadata-action@v5
43
+ with :
44
+ images : ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
45
+ tags : |
46
+ type=ref,event=branch
47
+ type=ref,event=pr
48
+ type=semver,pattern={{version}}
49
+ type=semver,pattern={{major}}.{{minor}}
50
+ type=sha
51
+
52
+ - name : Build and push Docker image
53
+ uses : docker/build-push-action@v5
54
+ with :
55
+ context : .
56
+ push : ${{ github.event_name != 'pull_request' }}
57
+ tags : ${{ steps.meta.outputs.tags }}
58
+ labels : ${{ steps.meta.outputs.labels }}
Original file line number Diff line number Diff line change
1
+ ARG ETCD_VERSION=3.5
2
+
3
+ FROM docker.io/bitnami/etcd:${ETCD_VERSION}
4
+
5
+ # Switch to root user
6
+ USER root
7
+
8
+ RUN mkdir -p /bitnami/etcd/data
9
+
10
+ # Keep the container running as root
11
+ ENTRYPOINT ["/opt/bitnami/scripts/etcd/entrypoint.sh" ]
12
+ CMD ["/opt/bitnami/scripts/etcd/run.sh" ]
13
+
Original file line number Diff line number Diff line change 1
1
MIT License
2
2
3
- Copyright (c) 2024 Lume Web
3
+ Copyright (c) 2024 Hammer Technologies LLC
4
4
5
5
Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
of this software and associated documentation files (the "Software"), to deal
You can’t perform that action at this time.
0 commit comments