fix: auto releaser #8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build, Publish Docker Image, and Create Release | |
on: | |
push: | |
branches: | |
- dev | |
paths: | |
- '**/docker-compose.dev.yml' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Log in to GitHub Container Registry | |
uses: docker/login-action@v2 | |
with: | |
registry: ghcr.io | |
username: ${{ github.repository_owner }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Set up Docker Compose | |
uses: docker/setup-buildx-action@v2 | |
- name: Build and push Docker image using docker-compose | |
run: | | |
docker-compose -f docker-compose.dev.yml build | |
docker-compose -f docker-compose.dev.yml push | |
- name: Create GitHub Release | |
id: create_release | |
uses: gh action/create-release@v1 | |
with: | |
tag_name: "v${{ github.run_number }}" | |
release_name: "Release v${{ github.run_number }}" | |
body: | | |
This release contains the latest Docker images built and pushed for `dev`. | |
draft: false | |
prerelease: false | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |