Skip to content

Commit

Permalink
chore: update workflow to build docker images
Browse files Browse the repository at this point in the history
  • Loading branch information
steveiliop56 committed Jul 15, 2024
1 parent cdf9bfd commit 20b62c0
Show file tree
Hide file tree
Showing 3 changed files with 87 additions and 3 deletions.
30 changes: 29 additions & 1 deletion .github/workflows/alpha-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,37 @@ jobs:
puck-linux-arm64
puck-linux-amd64
alpha-relese:
build-image:
needs: [create-tag, build-cli]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push image
uses: docker/build-push-action@v6
with:
context: .
platforms: linux/amd64, linux/arm64
push: true
tags: ghcr.io/${{ github.repository_owner }}/puck:${{ needs.create-tag.outputs.version }}, ghcr.io/${{ github.repository_owner }}/puck:latest

alpha-relese:
needs: [create-tag, build-cli, build-image]
runs-on: ubuntu-latest
steps:
- name: Download artifacts
uses: actions/download-artifact@v4
Expand Down
30 changes: 29 additions & 1 deletion .github/workflows/beta-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,37 @@ jobs:
puck-linux-arm64
puck-linux-amd64
beta-relese:
build-image:
needs: [create-tag, build-cli]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push image
uses: docker/build-push-action@v6
with:
context: .
platforms: linux/amd64, linux/arm64
push: true
tags: ghcr.io/${{ github.repository_owner }}/puck:${{ needs.create-tag.outputs.version }}, ghcr.io/${{ github.repository_owner }}/puck:latest

beta-relese:
needs: [create-tag, build-cli, build-image]
runs-on: ubuntu-latest
steps:
- name: Download artifacts
uses: actions/download-artifact@v4
Expand Down
30 changes: 29 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,37 @@ jobs:
puck-linux-arm64
puck-linux-amd64
relese:
build-image:
needs: [create-tag, build-cli]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push image
uses: docker/build-push-action@v6
with:
context: .
platforms: linux/amd64, linux/arm64
push: true
tags: ghcr.io/${{ github.repository_owner }}/puck:${{ needs.create-tag.outputs.version }}, ghcr.io/${{ github.repository_owner }}/puck:latest

relese:
needs: [create-tag, build-cli, build-image]
runs-on: ubuntu-latest
steps:
- name: Download artifacts
uses: actions/download-artifact@v4
Expand Down

0 comments on commit 20b62c0

Please sign in to comment.