Skip to content

Commit

Permalink
ci: Updated pre-release to test-build docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
xntrik committed Mar 21, 2023
1 parent 47d9f68 commit 9ca83d2
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/hcltm-pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,3 +76,40 @@ jobs:
name: |
linux-pkg
osx-pkg
pre-build-and-push-image:
runs-on: ubuntu-latest
needs: [pre-release]
permissions:
contents: read
packages: write

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up QEMU
uses: docker/setup-qemu-action@v2
with:
platforms: arm64

- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
flavor: |
latest=false
prefix=pre
- name: Build and push Docker image
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
with:
context: .
push: false
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
platforms: linux/amd64,linux/arm64

0 comments on commit 9ca83d2

Please sign in to comment.