-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (49 loc) · 1.52 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
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 }}