Skip to content

Commit b521613

Browse files
committed
Use recognize registry
1 parent f0bfbca commit b521613

2 files changed

Lines changed: 7 additions & 4 deletions

File tree

.github/workflows/build.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,16 @@ jobs:
2727
- uses: actions/checkout@v4
2828
- name: Set up Docker Buildx
2929
uses: docker/setup-buildx-action@v3
30-
- name: Login to registry
30+
- name: Login to Azure Container Registry
3131
uses: docker/login-action@v3
3232
with:
33-
username: ${{ secrets.DOCKER_USERNAME }}
34-
password: ${{ secrets.DOCKER_PASSWORD }}
33+
registry: ${{ secrets.ACR_REGISTRY }}
34+
username: ${{ secrets.ACR_USERNAME }}
35+
password: ${{ secrets.ACR_PASSWORD }}
3536
- name: Yarn install
3637
run: yarn
3738
- name: Yarn start
3839
run: 'yarn start "${{ matrix.php }}" "linux/amd64,linux/arm64"'
3940
env:
4041
INPUT_TOKEN: ${{ secrets.GITHUB_TOKEN }}
42+
ACR_REGISTRY: ${{ secrets.ACR_REGISTRY }}

src/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,8 @@ async function buildImages(docker: Docker, phpVersion: PhpVersion, nodeVersions:
9696
}
9797

9898
async function buildAndPushImage(docker: Docker, phpVersion: PhpVersion, nodeVersion: NodeVersion, imageSupport: boolean, debug: boolean) {
99-
const imageName = 'recognizebv/symfony-docker';
99+
const acrRegistry = process.env.ACR_REGISTRY || 'recognizebv';
100+
const imageName = `${acrRegistry}/symfony-docker`;
100101
const tagSuffix = `${phpVersion.webServer === WebServerType.NGINX ? '-nginx' : ''}-node${nodeVersion.major}` + (imageSupport ? '-image' : '') + (debug ? '-dev' : '');
101102
const exactTagName = `php${phpVersion.exactVersion}${tagSuffix}`
102103
const tagName = `php${phpVersion.version}${tagSuffix}`

0 commit comments

Comments
 (0)