Update build_beancount.yml
This commit is contained in:
parent
fdfa12c7d0
commit
9443404136
|
|
@ -18,18 +18,19 @@ jobs:
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v2
|
||||||
|
|
||||||
- name: Log in to Docker Hub
|
- name: Log in to Docker Hub
|
||||||
uses: docker/login-action@v3
|
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 Docker image
|
name: Build and push
|
||||||
run: |
|
uses: docker/build-push-action@v4
|
||||||
docker build -t ${{ secrets.DOCKER_USERNAME }}/my-app:${{ github.event.inputs.tag }} -f lib/Dockerfile .
|
with:
|
||||||
|
context: ./lib
|
||||||
- name: Push Docker image to Docker Hub
|
platforms: linux/amd64,linux/arm64
|
||||||
run: |
|
push: true
|
||||||
docker push ${{ secrets.DOCKER_USERNAME }}/beancount-alpine:${{ github.event.inputs.tag }}
|
tags: ${{ github.event.inputs.tag }}
|
||||||
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue