File tree Expand file tree Collapse file tree 2 files changed +26
-12
lines changed Expand file tree Collapse file tree 2 files changed +26
-12
lines changed Original file line number Diff line number Diff line change 99 branches :
1010 - main
1111
12- jobs :
13- docker_publish :
14- runs-on : " ubuntu-20.04 "
12+ env :
13+ REGISTRY : ghcr.io
14+ IMAGE_NAME : ${{ github.repository }}
1515
16+ jobs :
17+ build-and-push-image :
18+ runs-on : ubuntu-latest
1619 permissions :
1720 contents : read
1821 packages : write
19- attestations : write
20- id-token : write
2122
2223 steps :
23- 24+ - name : Checkout repository
25+ uses : actions/checkout@v4
26+
27+ - name : Log in to the Container registry
28+ uses : docker/login-action@v3
29+ with :
30+ registry : ${{ env.REGISTRY }}
31+ username : ${{ github.actor }}
32+ password : ${{ secrets.GITHUB_TOKEN }}
33+
34+ - name : Set up Docker Buildx
35+ uses : docker/setup-buildx-action@v3
2436
25- # https://github.com/marketplace/actions/push-to-ghcr
26- - name : Build and publish a Docker image for ${{ github.repository }}
27- uses : macbre/push-to-ghcr@master
37+ - name : Build and push Docker image
38+ uses : docker/build-push-action@v6
2839 with :
29- image_name : ${{ github.repository }}
30- github_token : ${{ secrets.GITHUB_TOKEN }}
40+ context : .
41+ file : ./Dockerfile
42+ push : true
43+ tags : ${{ github.repository }}
44+ platforms : linux/amd64,linux/arm64,linux/arm/v7
Original file line number Diff line number Diff line change 11FROM node:22-alpine AS node
2- FROM php:8.2.27 -cli-alpine
2+ FROM php:8.2-cli-alpine
33
44RUN apk add --no-cache libstdc++ libgcc jq git curl unzip sshpass openssh-client rsync bash
55
You can’t perform that action at this time.
0 commit comments