|
@ -20,14 +20,18 @@ jobs: |
|
|
id: buildx |
|
|
id: buildx |
|
|
uses: docker/setup-buildx-action@v2 |
|
|
uses: docker/setup-buildx-action@v2 |
|
|
|
|
|
|
|
|
- name: Login to docker hub |
|
|
- name: Login to DockerHub |
|
|
uses: docker/login-action@v2 |
|
|
uses: docker/login-action@v2 |
|
|
with: |
|
|
with: |
|
|
username: ${{ secrets.DOCKER_USERNAME }} |
|
|
username: ${{ secrets.DOCKER_USERNAME }} |
|
|
password: ${{ secrets.DOCKER_PASSWORD }} |
|
|
password: ${{ secrets.DOCKER_PASSWORD }} |
|
|
|
|
|
|
|
|
- name: Build the image |
|
|
- name: Build and push |
|
|
run: | |
|
|
uses: docker/build-push-action@v3 |
|
|
docker buildx build --push \ |
|
|
with: |
|
|
--tag grobut939/ghostfolio:latest \ |
|
|
context: . |
|
|
--platform linux/amd64,linux/arm64 . |
|
|
platforms: linux/amd64,linux/arm64 |
|
|
|
|
|
push: true |
|
|
|
|
|
tags: grobut939/ghostfolio:latest |
|
|
|
|
|
cache-from: type=gha |
|
|
|
|
|
cache-to: type=gha,mode=max |
|
|