Dockerfile - add env SERVER_PORT=80 and update EXPOSE #17
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build-release | |
on: push | |
jobs: | |
fe: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- 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: ./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: Checkout | |
uses: actions/checkout@v4 | |
- 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: ./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=be | |
fs: | |
runs-on: ubuntu-22.04 | |
needs: | |
- be | |
- fe | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- 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: . | |
file: Dockerfile | |
target: fs | |
cache-from: | | |
type=registry,ref=sssomeshhh/cache:rentify-fs | |
cache-to: | | |
type=registry,ref=sssomeshhh/cache:rentify-fs | |
load: false | |
push: true | |
tags: | | |
sssomeshhh/rentify:fs | |
sssomeshhh/rentify:fs-${{ github.sha }} |