mirror of
https://github.com/frappe/frappe_docker.git
synced 2026-06-23 00:05:09 +00:00
fix: login action
This commit is contained in:
parent
176ff94497
commit
a5698b1e71
1 changed files with 12 additions and 5 deletions
17
.github/workflows/production-image.yml
vendored
17
.github/workflows/production-image.yml
vendored
|
|
@ -10,6 +10,7 @@ env:
|
|||
|
||||
jobs:
|
||||
build-and-push-image:
|
||||
name: Build and push Docker image
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
permissions:
|
||||
|
|
@ -20,6 +21,9 @@ jobs:
|
|||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
- name: Log in to the Container registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
|
|
@ -27,12 +31,15 @@ jobs:
|
|||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
- name: Bake and push
|
||||
- name: Bake
|
||||
uses: docker/bake-action@v4
|
||||
with:
|
||||
targets: default
|
||||
no-cache: true
|
||||
push: true
|
||||
|
||||
- name: Push
|
||||
uses: docker/push-action@v2
|
||||
with:
|
||||
registry: ${{ env.REGISTRY }}
|
||||
image: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
|
||||
tags: latest
|
||||
|
|
|
|||
Loading…
Reference in a new issue