Skip to content

Merge pull request #18 from zeroject/development #1

Merge pull request #18 from zeroject/development

Merge pull request #18 from zeroject/development #1

name: Build Docker Compose and Release
on:
push:
branches:
- main
jobs:
build-and-release:
name: Build Docker Compose and Release
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Build Docker Compose
run: docker-compose build
- name: Log in to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Push Docker Compose Image
run: |
docker-compose push
- name: Create GitHub Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: v${{ github.run_number }}
release_name: Release v${{ github.run_number }}
body: |
Release for Docker Compose build.
draft: false
prerelease: false