Skip to content

Commit

Permalink
add .github/workflows/build-release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sssomeshhh committed May 27, 2024
1 parent 23c00a0 commit aea70e6
Showing 1 changed file with 66 additions and 0 deletions.
66 changes: 66 additions & 0 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: build-release

on: push

jobs:
fe:
runs-on: ubuntu-22.04
steps:
- name: Login to Docker Hub
uses: docker/[email protected]
with:
registry: docker.io
username: sssomeshhh
password: ${{ secrets.DOCKER_HUB_TOKEN }}
- name: Setup Docker Buildx
id: setup_buildx
uses: docker/[email protected]
- name: Build Target
uses: docker/[email protected]
with:
builder: ${{ steps.setup_buildx.name }}
context: "{{defaultContext}}:fe"
file: Dockerfile
target: fe
cache-from: |
type=registry,ref=sssomeshhh/cache:rentify-fe
cache-to: |
type=registry,ref=sssomeshhh/cache:rentify-fe
load: false
push: true
tags: |
sssomeshhh/rentify:fe
sssomeshhh/rentify:fe-${{ github.sha }}
build-args:
XE=fe

be:
runs-on: ubuntu-22.04
steps:
- name: Login to Docker Hub
uses: docker/[email protected]
with:
registry: docker.io
username: sssomeshhh
password: ${{ secrets.DOCKER_HUB_TOKEN }}
- name: Setup Docker Buildx
id: setup_buildx
uses: docker/[email protected]
- name: Build Target
uses: docker/[email protected]
with:
builder: ${{ steps.setup_buildx.name }}
context: "{{defaultContext}}:be"
file: Dockerfile
target: be
cache-from: |
type=registry,ref=sssomeshhh/cache:rentify-be
cache-to: |
type=registry,ref=sssomeshhh/cache:rentify-be
load: false
push: true
tags: |
sssomeshhh/rentify:be
sssomeshhh/rentify:be-${{ github.sha }}
build-args:
XE=fe

0 comments on commit aea70e6

Please sign in to comment.