Skip to content

Fixed workflow

Fixed workflow #2

Workflow file for this run

name: Create Release
on:
push:
tags:
- 'v*.*.*'
permissions:
contents: write
jobs:
new-version:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Create Release
id: create_release
uses: actions/create-release@v1
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
body: This is an automated release, wait for the change log to be updated
draft: false
prerelease: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker images
uses: docker/build-push-action@v2
with:
context: .
file: ./Dockerfile
push: true
tags: |
ghcr.io/${{ github.repository_owner }}/${{ github.event.repository.name }}/app:latest
ghcr.io/${{ github.repository_owner }}/${{ github.event.repository.name }}/app:${{ steps.getand.trace_version.outputs.VERSION }}
- name: Deploy (if needed)
run: echo "Deploy step can be customized or automated here"