Skip to content

Update docker image fallback name #2

Update docker image fallback name

Update docker image fallback name #2

name: Build Docker image
on:
push:
branches:
- main
paths:
- gradle.properties
- build.gradle.kts
- settings.gradle.kts
- src/**/*
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 17
- uses: docker/setup-buildx-action@v3
with:
install: true
- name: Login to container registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build Docker image
run: ./gradlew optimizedDockerBuildNative
env:
DOCKER_IMAGE: ghcr.io/jirkavrba/slack-tenor-bot
- name: Push Docker image to container registry
run: docker push ghcr.io/jirkavrba/slack-tenor-bot:latest