Skip to content

Commit 9062ce7

Browse files
Merge pull request #104 from devgateway:task/DVIZ-64/migrate-to-github-registry
chore (DVIZ-64): update workflows to push to github registry
2 parents 8f28f22 + a9a7886 commit 9062ce7

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/build-and-pre-release-wordpress.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
tag_prefix: v
4646
release_branches: production,release/*
4747
pre_release_branches: main
48-
append_to_pre_release_tag: snapshot-${{steps.current_date.outputs.current_date}}
48+
append_to_pre_release_tag: rc.${{ github.run_number}}
4949
dry_run: "true"
5050

5151
build-and-push-docker-image:
@@ -70,8 +70,8 @@ jobs:
7070
uses: docker/login-action@v3
7171
with:
7272
registry: ${{ vars.DOCKER_REGISTRY }}
73-
username: ${{ secrets.DOCKER_USERNAME }}
74-
password: ${{ secrets.DOCKER_PASSWORD }}
73+
username: ${{ github.actor }}
74+
password: ${{ secrets.GITHUB_TOKEN }}
7575

7676
- name: Build and push Docker image
7777
uses: docker/build-push-action@v6

.github/workflows/build-and-release-wordpress.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ jobs:
6666
uses: docker/login-action@v3
6767
with:
6868
registry: ${{ vars.DOCKER_REGISTRY }}
69-
username: ${{ secrets.DOCKER_USERNAME }}
70-
password: ${{ secrets.DOCKER_PASSWORD }}
69+
username: ${{ github.actor }}
70+
password: ${{ secrets.GITHUB_TOKEN }}
7171

7272
- name: Build and push Docker image
7373
uses: docker/build-push-action@v6

0 commit comments

Comments
 (0)