File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Docker Build
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+
8+ jobs :
9+ build :
10+ runs-on : ubuntu-latest
11+ steps :
12+ - name : Log in to the Container registry
13+ uses : docker/login-action@v3.6.0
14+ with :
15+ registry : ${{ env.REGISTRY }}
16+ username : ${{ github.actor }}
17+ password : ${{ secrets.GITHUB_TOKEN }}
18+ - name : Extract metadata (tags, labels) for Docker
19+ id : meta
20+ uses : docker/metadata-action@v5.8.0
21+ with :
22+ images : ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
23+ - name : Get git tag
24+ id : get_tag
25+ run : echo "TAG=${GITHUB_REF##*/}" >> $GITHUB_ENV
26+ - name : Build and push Docker image
27+ id : push
28+ uses : docker/build-push-action@v6.18.0
29+ with :
30+ context : .
31+ push : true
32+ pull : true
33+ tags : ${{ steps.meta.outputs.tags }}
34+ labels : ${{ steps.meta.outputs.labels }}
35+ build-args : |
36+ GIT_TAG=${{ env.TAG }}
37+ - name : Generate artifact attestation
38+ uses : actions/attest-build-provenance@v3
39+ with :
40+ subject-name : ${{ env.REGISTRY }}/${{ env.IMAGE_NAME}}
41+ subject-digest : ${{ steps.push.outputs.digest }}
42+ push-to-registry : true
Original file line number Diff line number Diff line change 1+ FROM proxysql/proxysql:3-debian@sha256:1a035a8c1f834abecec11ba18fccb541658cf6ed786a28edc084645048a27b0f
2+
3+ # Install envsubst (part of gettext-base package)
4+ RUN apt-get update && \
5+ apt-get install -y --no-install-recommends gettext-base && \
6+ rm -rf /var/lib/apt/lists/*
You can’t perform that action at this time.
0 commit comments