Skip to content

Commit 0529dc0

Browse files
committed
Forzar rebuild para probar auto push a dockerhub
1 parent af66730 commit 0529dc0

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

.github/workflows/docker-build.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,33 +7,31 @@ on:
77
branches: [ "*" ]
88

99
env:
10-
REGISTRY: ghcr.io
11-
IMAGE_NAME: ${{ github.repository }}
10+
REGISTRY: docker.io
11+
IMAGE_NAME: ${{ secrets.DOCKERHUB_USERNAME }}/docker-odoo
1212

1313
jobs:
1414
build:
1515
runs-on: ubuntu-latest
1616
permissions:
1717
contents: read
18-
packages: write
1918

2019
steps:
2120
- name: Checkout repository
2221
uses: actions/checkout@v4
2322

24-
- name: Log in to Container Registry
23+
- name: Log in to Docker Hub
2524
if: github.event_name != 'pull_request'
2625
uses: docker/login-action@v3
2726
with:
28-
registry: ${{ env.REGISTRY }}
29-
username: ${{ github.actor }}
30-
password: ${{ secrets.GITHUB_TOKEN }}
27+
username: ${{ secrets.DOCKERHUB_USERNAME }}
28+
password: ${{ secrets.DOCKERHUB_TOKEN }}
3129

3230
- name: Extract metadata
3331
id: meta
3432
uses: docker/metadata-action@v5
3533
with:
36-
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
34+
images: ${{ env.IMAGE_NAME }}
3735
tags: |
3836
type=ref,event=branch
3937
type=ref,event=pr
@@ -51,6 +49,5 @@ jobs:
5149
push: ${{ github.event_name != 'pull_request' }}
5250
tags: ${{ steps.meta.outputs.tags }}
5351
labels: ${{ steps.meta.outputs.labels }}
54-
# Solo cache de GitHub Actions
5552
cache-from: type=gha
5653
cache-to: type=gha,mode=max

0 commit comments

Comments
 (0)