Skip to content
This repository has been archived by the owner on Nov 27, 2023. It is now read-only.

chore: Release version 2.0.14 #102

chore: Release version 2.0.14

chore: Release version 2.0.14 #102

Workflow file for this run

name: Build and push docker images
on:
push:
tags:
- 'v*.*.*'
jobs:
build:
permissions:
contents: write
packages: write
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set env
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to registry
uses: docker/login-action@v2
with:
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
registry: ghcr.io
- name: Build and push Docker images
uses: docker/build-push-action@v3
with:
context: app
tags: |
ghcr.io/jawsper/feedreader:${{ env.RELEASE_VERSION }}
ghcr.io/jawsper/feedreader:latest
cache-from: type=registry,ref=ghcr.io/jawsper/feedreader:latest
cache-to: type=inline
push: true
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')