Skip to content

Commit

Permalink
Create deploy2.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
smashyalts authored Feb 27, 2024
1 parent cfd3ae5 commit 10b0ca5
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/deploy2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Build and deploy - Vanilla2

on:
push:
branches:
- vanilla

jobs:
build:
runs-on: ubuntu-latest

permissions:
contents: read
packages: write

steps:
- uses: actions/checkout@v4

- uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'adopt'
cache: 'maven'

- name: Log in to GitHub Docker Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build Packages
run: mvn -f chunky-dedicated/ --update-snapshots --batch-mode package

- name: Build Docker image
uses: docker/build-push-action@v5
with:
push: true
context: ./
file: ./Dockerfile
tags: |
ghcr.io/smashyalts/chunky-dedicated/vanilla2:latest
ghcr.io/smashyalts/chunky-dedicated/vanilla2:${{ github.sha }}

0 comments on commit 10b0ca5

Please sign in to comment.