Skip to content

Commit

Permalink
fix: github action docker buildx
Browse files Browse the repository at this point in the history
  • Loading branch information
Walkers15 committed Jan 30, 2024
1 parent 9cde169 commit f08c1bd
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,17 @@ jobs:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: web image build and push
env:
NAME: ${{ secrets.DOCKER_USERNAME }}
REPO: ${{ secrets.DOCKER_REPO }}
run: |
docker build -t $NAME/$REPO .
docker push $NAME/$REPO
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: web image build and push (multi-platform)
uses: docker/build-push-action@v2
with:
context: .
file: ./Dockerfile
push: true
tags: ${{ secrets.DOCKER_USERNAME }}/${{ secrets.DOCKER_REPO }}:latest
platforms: linux/amd64,linux/arm64

- name: executing remote ssh commands using password
uses: appleboy/ssh-action@master
Expand Down

0 comments on commit f08c1bd

Please sign in to comment.