mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-13 00:03:27 +10:00
Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 3.0.0 to 3.1.0. - [Release notes](https://github.com/docker/build-push-action/releases) - [Commits](https://github.com/docker/build-push-action/compare/v3.0.0...v3.1.0) --- updated-dependencies: - dependency-name: docker/build-push-action dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
81 lines
2.3 KiB
YAML
81 lines
2.3 KiB
YAML
name: Build and Push Docker Image
|
|
|
|
on:
|
|
release:
|
|
types: [published]
|
|
|
|
jobs:
|
|
client:
|
|
name: Client
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout the repository
|
|
uses: actions/checkout@v3.0.2
|
|
|
|
- id: version
|
|
name: Get Version
|
|
run: echo ::set-output name=tag::${GITHUB_REF#refs/*/}
|
|
|
|
- name: Login to Docker Hub
|
|
uses: docker/login-action@v2.0.0
|
|
with:
|
|
username: ${{ secrets.DOCKER_USERNAME }}
|
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
|
|
|
- name: Login to GitHub Container Registry
|
|
uses: docker/login-action@v2.0.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.1.0
|
|
with:
|
|
context: .
|
|
push: true
|
|
file: client/Dockerfile
|
|
tags: |
|
|
amruthpillai/reactive-resume:client-latest
|
|
amruthpillai/reactive-resume:client-${{ steps.version.outputs.tag }}
|
|
ghcr.io/amruthpillai/reactive-resume:client-latest
|
|
ghcr.io/amruthpillai/reactive-resume:client-${{ steps.version.outputs.tag }}
|
|
|
|
server:
|
|
name: Server
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout the repository
|
|
uses: actions/checkout@v3.0.2
|
|
|
|
- id: version
|
|
name: Get Version
|
|
run: echo ::set-output name=tag::${GITHUB_REF#refs/*/}
|
|
|
|
- name: Login to Docker Hub
|
|
uses: docker/login-action@v2.0.0
|
|
with:
|
|
username: ${{ secrets.DOCKER_USERNAME }}
|
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
|
|
|
- name: Login to GitHub Container Registry
|
|
uses: docker/login-action@v2.0.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.1.0
|
|
with:
|
|
context: .
|
|
push: true
|
|
file: server/Dockerfile
|
|
tags: |
|
|
amruthpillai/reactive-resume:server-latest
|
|
amruthpillai/reactive-resume:server-${{ steps.version.outputs.tag }}
|
|
ghcr.io/amruthpillai/reactive-resume:server-latest
|
|
ghcr.io/amruthpillai/reactive-resume:server-${{ steps.version.outputs.tag }}
|