Skip to content

Build Server Docker Image #17

Build Server Docker Image

Build Server Docker Image #17

name: Build Server Docker Image
on:
workflow_dispatch
jobs:
package-server-jar:
uses: CodeandoMexico/mapmap/.github/workflows/build-server-jar.yml@main
docker-image-production:
needs: package-server-jar
runs-on: ubuntu-latest
environment: production
if: github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v2
- name: Restore cached JAR
id: cache-primes-restore
uses: actions/cache/restore@v3
with:
path: mapmap-server.jar
key: mapmap-server-jar
- name: Build Docker Image
uses: VaultVulp/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
image-name: production
image-tag: 1.1.2
dockerfile: docker/Dockerfile
build-context: .