File tree Expand file tree Collapse file tree 2 files changed +41
-0
lines changed
Expand file tree Collapse file tree 2 files changed +41
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Build and Push enigma image to Docker
2+ on :
3+ push :
4+ tags :
5+ - ' v*'
6+
7+ jobs :
8+ build :
9+ runs-on : ubuntu-latest
10+ steps :
11+ - name : Check out the repo
12+ uses : actions/checkout@v3
13+ - name : Set up QEMU
14+ uses : docker/setup-qemu-action@v2
15+ - name : Set up Docker Buildx
16+ uses : docker/setup-buildx-action@v2
17+ - name : Docker metadata
18+ id : meta
19+ uses : docker/metadata-action@v4
20+ with :
21+ images : |
22+ browserstack/enigma
23+ tags : |
24+ type=semver,pattern=v{{version}}
25+ type=semver,pattern=v{{major}}.{{minor}}
26+ type=semver,pattern=v{{major}}
27+ - name : Login to DockerHub
28+ uses : docker/login-action@v2
29+ with :
30+ username : ${{ secrets.DOCKERHUB_USERNAME }}
31+ password : ${{ secrets.DOCKERHUB_TOKEN }}
32+ - name : Build and push
33+ uses : docker/build-push-action@v4
34+ with :
35+ context : .
36+ push : true
37+ platforms : linux/amd64, linux/arm64/v8
38+ target : web
39+ tags : ${{ steps.meta.outputs.tags }}
40+ labels : ${{ steps.meta.outputs.labels }}
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ ARG APPUID=1001
2222RUN useradd -rm -d /home/app -s /bin/bash -g root -G sudo -u "$APPUID" app
2323WORKDIR /srv/code/dev
2424RUN mkdir -p logs
25+ RUN mkdir -p db
2526RUN chown -R app /srv/code/dev /ebs
2627USER app
2728
You can’t perform that action at this time.
0 commit comments