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+ on :
2+ push :
3+ branches :
4+ - main
5+ tags :
6+ - ' v*'
7+
8+ env :
9+ REGISTRY : ghcr.io
10+ IMAGE_NAME : ${{ github.repository }}
11+
12+ jobs :
13+ build-container :
14+ runs-on : ubuntu-latest
15+ permissions :
16+ contents : write
17+ attestations : write
18+ packages : write
19+ id-token : write
20+ steps :
21+ - name : Checkout
22+ uses : actions/checkout@v4
23+
24+ - name : Log in to the Container registry
25+ uses : docker/login-action@v3
26+ with :
27+ registry : ${{ env.REGISTRY }}
28+ username : ${{ github.actor }}
29+ password : ${{ secrets.GITHUB_TOKEN }}
30+
31+ - name : Extract metadata (tags, labels) for Docker
32+ id : meta
33+ uses : docker/metadata-action@v5
34+ with :
35+ images : ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
36+ tags : |
37+ type=raw,value=${{ github.run_number }}
38+
39+ - name : Build and push Docker image
40+ uses : docker/build-push-action@v6
41+ with :
42+ context : .
43+ push : true
44+ tags : ${{ steps.meta.outputs.tags }}
45+ labels : ${{ steps.meta.outputs.labels }}
46+
Original file line number Diff line number Diff line change 1+ FROM alpine:3.22
2+
3+ RUN apk add --no-cache mariadb-client postgresql17-client dropbear-scp rsync s3cmd
You can’t perform that action at this time.
0 commit comments