-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (29 loc) · 883 Bytes
/
deploy_map.yml
File metadata and controls
36 lines (29 loc) · 883 Bytes
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
name: Build & Push (map)
on:
push:
branches:
- develop
workflow_dispatch:
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup JDK
uses: actions/setup-java@v4
with:
distribution: corretto
java-version: '21'
- name: Make gradlew executable
run: chmod +x ./gradlew
- name: Build (skip tests)
run: ./gradlew clean build -x test
- name: Docker login
run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin
- name: Build & Push
run: |
REPO=${{ secrets.DOCKER_USERNAME }}/map
docker build -t $REPO:latest -t $REPO:${{ github.sha }} .
docker push $REPO:latest
docker push $REPO:${{ github.sha }}