Skip to content

Merge pull request #5 from mkraibt/1.25.2 #8

Merge pull request #5 from mkraibt/1.25.2

Merge pull request #5 from mkraibt/1.25.2 #8

Workflow file for this run

name: Docker Image CI
on:
push:
branches: [ "latest", "1.25.2" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Running on Branch
run: echo "BRANCH=${GITHUB_REF##*/}" >> $GITHUB_ENV
- name: Build the Docker image
run: |
echo "${{ secrets.DOCKER_HUB_TOKEN }}" | docker login -u "${{ secrets.DOCKER_HUB_USERNAME }}" --password-stdin docker.io
docker build . --file Dockerfile --tag docker.io/${{ secrets.DOCKER_HUB_USERNAME }}/${{ secrets.DOCKER_HUB_REPOSITORY }}:${{ env.BRANCH }}
docker push docker.io/${{ secrets.DOCKER_HUB_USERNAME }}/${{ secrets.DOCKER_HUB_REPOSITORY }}:${{ env.BRANCH }}