File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed
Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change 9797 context : .
9898 push : false
9999 tags : portfolio-site:test
100+
101+ docker-publish :
102+ name : Publish Docker Image
103+ runs-on : ubuntu-latest
104+ needs : [stylelint, prettier, eslint, docker-build]
105+
106+ permissions :
107+ contents : read
108+ packages : write
109+
110+ steps :
111+ - name : Checkout code
112+ uses : actions/checkout@v4
113+
114+ - name : Set up Docker Buildx
115+ uses : docker/setup-buildx-action@v3
116+
117+ - name : Login to GHCR
118+ uses : docker/login-action@v3
119+ with :
120+ registry : ghcr.io
121+ username : ${{ github.actor }}
122+ password : ${{ secrets.GITHUB_TOKEN }}
123+
124+ - name : Build and push image
125+ uses : docker/build-push-action@v5
126+ with :
127+ context : .
128+ push : true
129+ tags : ghcr.io/${{ github.repository }}:latest
You can’t perform that action at this time.
0 commit comments