Merge pull request #6 from The-Galley/develop #3
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: Make release | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- master | |
jobs: | |
checking: | |
name: Check repository | |
uses: ./.github/workflows/check.yml | |
build_and_push_docker: | |
name: Build and push AMD64 and ARM64 images | |
needs: checking | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up tag | |
id: vars | |
run: echo "sha_short=`echo ${GITHUB_SHA} | cut -c1-8`" >> $GITHUB_OUTPUT | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v2 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: Login to Docker Hub | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Build and push backend image | |
uses: docker/build-push-action@v5 | |
with: | |
push: true | |
platforms: linux/amd64,linux/arm64 | |
context: ./ | |
file: ./docker/rest.dockerfile | |
tags: | | |
andytakker/industry-game-rest:latest | |
andytakker/vk-parser:${{ steps.vars.outputs.sha_short }} | |
- name: Build and push frontend image | |
uses: docker/build-push-action@v5 | |
with: | |
push: true | |
platforms: linux/amd64,linux/arm64 | |
context: ./ | |
file: ./docker/frontend.dockerfile | |
tags: | | |
andytakker/industry-game-frontend:latest | |
andytakker/vk-parser:${{ steps.vars.outputs.sha_short }} |