gitea CI
Build and publish / docker (push) Failing after 12s
Details
Build and publish / docker (push) Failing after 12s
Details
This commit is contained in:
parent
fac83012be
commit
f5b43c8062
|
@ -0,0 +1,40 @@
|
||||||
|
name: Build and publish
|
||||||
|
run-name: ${{ gitea.actor }} is runs ci pipeline
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
docker:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
container:
|
||||||
|
image: catthehacker/ubuntu:act-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v3
|
||||||
|
with:
|
||||||
|
config-inline: |
|
||||||
|
[registry."git.bhasher.com"]
|
||||||
|
http = true
|
||||||
|
insecure = true
|
||||||
|
|
||||||
|
- name: Login
|
||||||
|
uses: docker/login-action@v2
|
||||||
|
with:
|
||||||
|
registry: git.bhasher.com
|
||||||
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
|
|
||||||
|
- name: Build and push
|
||||||
|
uses: docker/build-push-action@v5
|
||||||
|
with:
|
||||||
|
push: true
|
||||||
|
platforms: |
|
||||||
|
linux/amd64
|
||||||
|
linux/arm64
|
||||||
|
tags: |
|
||||||
|
git.bhasher.com/bhasher/blog:latest
|
|
@ -0,0 +1,17 @@
|
||||||
|
FROM alpine:latest AS build
|
||||||
|
|
||||||
|
RUN apk add --update hugo
|
||||||
|
|
||||||
|
WORKDIR /opt/HugoApp
|
||||||
|
|
||||||
|
COPY . .
|
||||||
|
|
||||||
|
RUN hugo
|
||||||
|
|
||||||
|
FROM nginx:1.25-alpine
|
||||||
|
|
||||||
|
WORKDIR /usr/share/nginx/html
|
||||||
|
|
||||||
|
COPY --from=build /opt/HugoApp/public .
|
||||||
|
|
||||||
|
EXPOSE 80/tcp
|
Loading…
Reference in New Issue