Skip to content

Update dependabot.yml #20

Update dependabot.yml

Update dependabot.yml #20

Workflow file for this run

name: Create GitHub release for tag
on:
push:
tags:
- '*'
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Log in to the Container registry
uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v4
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
- name: Set up JDK 17
uses: actions/setup-java@v1
with:
java-version: 17
- name: Build with Gradle
run: |
chmod +x gradlew
./gradlew stage
- name: Archive production artifacts
uses: actions/upload-artifact@v3
with:
name: release
path: build/libs/diabot.jar
- name: Build and push Docker image
uses: docker/build-push-action@v3
with:
# This will use a dockerfile which copies the already-built JAR from `build/libs/`
file: Dockerfile.nobuild
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: build/libs/diabot.jar
generate_release_notes: true
draft: true