Add docker file and an action
Some checks failed
Build release image / build (push) Failing after 3m0s
Some checks failed
Build release image / build (push) Failing after 3m0s
This commit is contained in:
47
.gitea/workflows/release.yaml
Normal file
47
.gitea/workflows/release.yaml
Normal file
@ -0,0 +1,47 @@
|
||||
name: Build release image
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- "*.*.*"
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-22.04
|
||||
container:
|
||||
image: git.nicelycomposed.codes/koshyk-io/flutter-gitea-action-image-builder:latest
|
||||
credentials:
|
||||
username: ${{ secrets.IMAGE_REGISTRY_USER }}
|
||||
password: ${{ secrets.IMAGE_REGISTRY_PASSWORD }}
|
||||
steps:
|
||||
- name: Checkout source code
|
||||
uses: actions/checkout@v4
|
||||
- name: Set up NodeJS
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 18
|
||||
- name: Get dependencies
|
||||
working-directory: ${{ gitea.workspace }}
|
||||
run: |
|
||||
npm install --global yarn
|
||||
yarn
|
||||
- name: Build website
|
||||
working-directory: ${{ gitea.workspace }}
|
||||
run: |
|
||||
yarn build
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
- name: Login to Registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: git.nicelycomposed.codes
|
||||
username: ${{ secrets.IMAGE_REGISTRY_USER }}
|
||||
password: ${{ secrets.IMAGE_REGISTRY_PASSWORD }}
|
||||
- name: Build docker image
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
context: .
|
||||
push: true
|
||||
tags: |
|
||||
git.nicelycomposed.codes/yehor/www-yevi-org:${{ gitea.ref_name }}
|
||||
git.nicelycomposed.codes/yehor/www-yevi-org:latest
|
Reference in New Issue
Block a user