Skip to content

Commit

Permalink
Merge pull request #19 from mhzawadi/dev
Browse files Browse the repository at this point in the history
Update Github Actions
  • Loading branch information
mhzawadi authored Jan 27, 2023
2 parents 1136e6c + 20580db commit 6e5ec2a
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 33 deletions.
20 changes: 9 additions & 11 deletions .github/workflows/image-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,16 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: install buildx
id: buildx
uses: docker/setup-buildx-action@v1
- name: Available platforms
run: echo ${{ steps.buildx.outputs.platforms }}
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: login to docker hub
run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin
- name: build the image
run: |
docker buildx build --push \
--tag mhzawadi/invoiceplane:dev \
--platform linux/amd64,linux/arm64,linux/arm/v7 .
uses: docker/build-push-action@v3
with:
push: true
platforms: linux/amd64,linux/arm64,linux/arm/v7
tags: mhzawadi/invoiceplane:dev
20 changes: 9 additions & 11 deletions .github/workflows/image-latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,16 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: install buildx
id: buildx
uses: docker/setup-buildx-action@v1
- name: Available platforms
run: echo ${{ steps.buildx.outputs.platforms }}
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: login to docker hub
run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin
- name: build the image
run: |
docker buildx build --push \
--tag mhzawadi/invoiceplane:latest \
--platform linux/amd64,linux/arm64,linux/arm/v7 .
uses: docker/build-push-action@v3
with:
push: true
platforms: linux/amd64,linux/arm64,linux/arm/v7
tags: mhzawadi/invoiceplane:latest
20 changes: 9 additions & 11 deletions .github/workflows/image-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: install buildx
id: buildx
uses: docker/setup-buildx-action@v1
- name: Available platforms
run: echo ${{ steps.buildx.outputs.platforms }}
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Prepare
id: prepare
run: |
Expand All @@ -26,7 +23,8 @@ jobs:
- name: login to docker hub
run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin
- name: build the image
run: |
docker buildx build --push \
--tag "mhzawadi/invoiceplane:${{ steps.prepare.outputs.version }}" \
--platform linux/amd64,linux/arm64,linux/arm/v7 .
uses: docker/build-push-action@v3
with:
push: true
platforms: linux/amd64,linux/arm64,linux/arm/v7
tags: "mhzawadi/invoiceplane:${{ steps.prepare.outputs.version }}"

0 comments on commit 6e5ec2a

Please sign in to comment.