Setup Gitea Actions CI/CD pipeline
Build and Push Docker Image / build-and-push (push) Failing after 4m1s
Build and Push Docker Image / build-and-push (push) Failing after 4m1s
This commit is contained in:
1 parent
2317f9f133
commit
570dfe9722
2 files changed
+28
-1
No files matched your search
@@ -0,0 +1,27 @@
|
|||||||
|
name: Build and Push Docker Image
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build-and-push:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Login to Gitea Container Registry
|
||||||
|
uses: docker/login-action@v2
|
||||||
|
with:
|
||||||
|
registry: git.proit.id
|
||||||
|
username: ${{ github.actor }}
|
||||||
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
- name: Build and Push Docker Image
|
||||||
|
uses: docker/build-push-action@v4
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
push: true
|
||||||
|
tags: git.proit.id/ypratama/portal-inventory:latest
|
||||||
+1
-1
@@ -21,7 +21,7 @@ services:
|
|||||||
condition: on-failure
|
condition: on-failure
|
||||||
|
|
||||||
inventory-app:
|
inventory-app:
|
||||||
image: inventory-app:latest
|
image: git.proit.id/ypratama/portal-inventory:latest
|
||||||
ports:
|
ports:
|
||||||
- "3000:3000"
|
- "3000:3000"
|
||||||
environment:
|
environment:
|
||||||
|
|||||||
Reference in new issue
Block a user