[HOTFIX]: fix blog favicons. Update next (#400) #38
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: 'GameHub build, push and deploy' | |
on: | |
push: | |
branches: [ master ] | |
paths: | |
- 'apps/gamehub-client/**' | |
- '.deploy/gamehub.deploy.yml' | |
- '.docker/GameHub-client_Dockerfile*' | |
- '.github/workflows/gamehub-deploy.yml' | |
env: | |
AWS_REGION: 'eu-north-1' | |
jobs: | |
build-gamehub-client-image: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Docker Setup QEMU | |
uses: docker/setup-qemu-action@v2 | |
with: | |
platforms: 'arm64' | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
with: | |
driver-opts: env.BUILDKIT_STEP_LOG_MAX_SIZE=10485760 | |
- name: Docker login | |
uses: docker/login-action@v2 | |
with: | |
registry: ghcr.io | |
username: ${{ github.repository_owner }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build and push | |
uses: docker/build-push-action@v3 | |
with: | |
platforms: linux/arm64 | |
push: true | |
tags: | | |
ghcr.io/memebattle/gamehub-client:${{ github.sha }} | |
ghcr.io/memebattle/gamehub-client:latest | |
context: '.' | |
file: '.docker/GameHub-client_Dockerfile' | |
cache-from: type=gha,scope=$GITHUB_REF_NAME-gamehub-client | |
cache-to: type=gha,mode=max,scope=$GITHUB_REF_NAME-gamehub-client | |
deploy: | |
needs: [build-gamehub-client-image] | |
runs-on: ubuntu-20.04 | |
environment: | |
name: GameHub-production | |
url: https://mems.fun | |
steps: | |
- uses: actions/checkout@v3 | |
name: Checkout | |
- uses: ./.github/actions/deploy-to-swarm | |
name: Deploy to swarm lambda | |
with: | |
path-to-stack: '.deploy/gamehub.deploy.yml' | |
name: 'GAMEHUB' | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
docker_login: ${{ secrets.GHCR_USER }} | |
docker_password: ${{ secrets.GHCR_PULL_TOKEN }} | |
docker_registry: 'ghcr.io' |