mirror of
https://github.com/Websoft9/websoft9.git
synced 2025-01-24 01:50:19 +08:00
gitea upload to dockerhub
This commit is contained in:
parent
b6707c1132
commit
d7fdca5ad4
36
.github/workflows/build_git.yml
vendored
Normal file
36
.github/workflows/build_git.yml
vendored
Normal file
@ -0,0 +1,36 @@
|
||||
name: AppManage Build And Push To DockerHub
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
paths:
|
||||
- "docker/w9git/Dockerfile"
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Build Docker image
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
TAGS: latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
name: Check out code
|
||||
|
||||
- name: Get version
|
||||
run: |
|
||||
version=$(grep -Po '(?<=LABEL version=").*?(?=")' docker/w9git/Dockerfile)
|
||||
echo $version
|
||||
echo "::set-output name=version::$version"
|
||||
echo "VERSION=$version" >> $GITHUB_ENV
|
||||
|
||||
- uses: mr-smithers-excellent/docker-build-push@v5
|
||||
name: Build & push Docker image
|
||||
with:
|
||||
image: websoft9dev/gitea
|
||||
tags: ${{ env.VERSION }}
|
||||
addLatest: True
|
||||
registry: docker.io
|
||||
dockerfile: appmanage/Dockerfile
|
||||
directory: appmanage
|
||||
username: ${{ secrets.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
@ -1,4 +1,7 @@
|
||||
FROM gitea/gitea:1.20.4
|
||||
LABEL maintainer="Websoft9<help@websoft9.com>"
|
||||
LABEL version="1.20.4"
|
||||
|
||||
COPY init.sh /usr/local/bin/init.sh
|
||||
COPY ./init /etc/s6/init
|
||||
RUN chmod -R 755 /etc/s6/init /usr/local/bin/init.sh
|
||||
|
Loading…
Reference in New Issue
Block a user