Skip to content

Commit

Permalink
add build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ciur committed Oct 25, 2024
1 parent 2e09693 commit 7e0fad0
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Build Image

on:
push:
tags:
- '[0-9]+.[0-9]+.[0-9]+\-rc[0-9]+'
- '[0-9]+.[0-9]+.[0-9]+\-b[0-9]+'
- '[0-9]+.[0-9]+.[0-9]+'
- '[0-9]+.[0-9]+\-rc[0-9]+'
- '[0-9]+.[0-9]+\-b[0-9]+'
- '[0-9]+.[0-9]+'

jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.ref }} # checkout current branch
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ vars.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build ${{ github.ref_name }} Prod Image
uses: docker/build-push-action@v5
with:
push: true
tags: papermerge/west:${{ github.ref_name }}
file: docker/Dockerfile
platforms: linux/amd64

0 comments on commit 7e0fad0

Please sign in to comment.