Update build_beancount.yml

This commit is contained in:
初意 2024-07-09 00:26:21 +08:00 committed by GitHub
parent fdfa12c7d0
commit 9443404136
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 11 additions and 10 deletions

View File

@ -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 }}