Skip to content

Commit

Permalink
fix(ci): buildx and login added
Browse files Browse the repository at this point in the history
  • Loading branch information
mohammad5305 committed Dec 13, 2023
1 parent 32784f2 commit 851a735
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,21 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
# - name: docker build
# run : |
# docker build -t crawl:latest .

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: build
run : |
docker buildx build -t crawl:latest --platform linux/i386,linux/x86_64 .
- name: Setup tmate session
uses: mxschmitt/action-tmate@v3
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: ${{ secrets.DOCKERHUB_USERNAME }}/crawl-webtiles:latest

0 comments on commit 851a735

Please sign in to comment.