mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-10 04:22:27 +10:00
Bumps [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action) from 2.1.0 to 2.2.1. - [Release notes](https://github.com/docker/setup-buildx-action/releases) - [Commits](https://github.com/docker/setup-buildx-action/compare/v2.1.0...v2.2.1) --- updated-dependencies: - dependency-name: docker/setup-buildx-action dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
113 lines
3.1 KiB
YAML
113 lines
3.1 KiB
YAML
name: Build and Push Docker Image
|
|
|
|
on:
|
|
release:
|
|
types: [published]
|
|
|
|
jobs:
|
|
client:
|
|
name: Client
|
|
runs-on: ubuntu-latest
|
|
|
|
env:
|
|
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
|
|
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
|
|
|
|
steps:
|
|
- name: Checkout the repository
|
|
uses: actions/checkout@v3.1.0
|
|
with:
|
|
fetch-depth: 2
|
|
|
|
- id: version
|
|
name: Get Version
|
|
run: echo "version=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
|
|
|
|
- name: Set up QEMU
|
|
uses: docker/setup-qemu-action@v2.1.0
|
|
|
|
- id: buildx
|
|
name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v2.2.1
|
|
with:
|
|
install: true
|
|
|
|
- name: Login to Docker Hub
|
|
uses: docker/login-action@v2.1.0
|
|
with:
|
|
username: ${{ secrets.DOCKER_USERNAME }}
|
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
|
|
|
- name: Login to GitHub Container Registry
|
|
uses: docker/login-action@v2.1.0
|
|
with:
|
|
registry: ghcr.io
|
|
username: $GITHUB_REPOSITORY_OWNER
|
|
password: ${{ secrets.GH_TOKEN }}
|
|
|
|
- name: Build and Push Client Image
|
|
uses: docker/build-push-action@v3.2.0
|
|
with:
|
|
context: .
|
|
push: true
|
|
file: client/Dockerfile
|
|
platforms: linux/amd64,linux/arm64
|
|
tags: |
|
|
amruthpillai/reactive-resume:client-latest
|
|
amruthpillai/reactive-resume:client-${{ env.version }}
|
|
ghcr.io/amruthpillai/reactive-resume:client-latest
|
|
ghcr.io/amruthpillai/reactive-resume:client-${{ env.version }}
|
|
|
|
server:
|
|
name: Server
|
|
runs-on: ubuntu-latest
|
|
|
|
env:
|
|
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
|
|
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
|
|
|
|
steps:
|
|
- name: Checkout the repository
|
|
uses: actions/checkout@v3.1.0
|
|
with:
|
|
fetch-depth: 2
|
|
|
|
- id: version
|
|
name: Get Version
|
|
run: echo "version=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
|
|
|
|
- name: Set up QEMU
|
|
uses: docker/setup-qemu-action@v2.1.0
|
|
|
|
- id: buildx
|
|
name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v2.2.1
|
|
with:
|
|
install: true
|
|
|
|
- name: Login to Docker Hub
|
|
uses: docker/login-action@v2.1.0
|
|
with:
|
|
username: ${{ secrets.DOCKER_USERNAME }}
|
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
|
|
|
- name: Login to GitHub Container Registry
|
|
uses: docker/login-action@v2.1.0
|
|
with:
|
|
registry: ghcr.io
|
|
username: $GITHUB_REPOSITORY_OWNER
|
|
password: ${{ secrets.GH_TOKEN }}
|
|
|
|
- name: Build and Push Server Image
|
|
uses: docker/build-push-action@v3.2.0
|
|
with:
|
|
context: .
|
|
push: true
|
|
file: server/Dockerfile
|
|
platforms: linux/amd64,linux/arm64
|
|
tags: |
|
|
amruthpillai/reactive-resume:server-latest
|
|
amruthpillai/reactive-resume:server-${{ env.version }}
|
|
ghcr.io/amruthpillai/reactive-resume:server-latest
|
|
ghcr.io/amruthpillai/reactive-resume:server-${{ env.version }}
|