move to packwiz
This commit is contained in:
parent
7db0bb5c60
commit
e7cbdd0525
129 changed files with 2381 additions and 0 deletions
66
.forgejo/workflows/buildcontainer.yml
Normal file
66
.forgejo/workflows/buildcontainer.yml
Normal file
|
|
@ -0,0 +1,66 @@
|
|||
name: Create Buildcontainer
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "main"
|
||||
paths:
|
||||
- .forgejo/workflows/buildcontainer.yml
|
||||
- Dockerfile
|
||||
pull_request:
|
||||
branches:
|
||||
- "main"
|
||||
paths:
|
||||
- .forgejo/workflows/buildcontainer.yml
|
||||
- Dockerfile
|
||||
|
||||
jobs:
|
||||
|
||||
build:
|
||||
runs-on: docker
|
||||
container:
|
||||
image: code.forgejo.org/oci/docker:dind
|
||||
env:
|
||||
DOCKER_HOST: tcp://forgejo-dind:2375
|
||||
|
||||
steps:
|
||||
- name: Setup Docker & Node
|
||||
run: |
|
||||
apk add nodejs npm --update
|
||||
docker info
|
||||
|
||||
- name: Checkout the repo
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Build and Push
|
||||
run: |
|
||||
export TAG=codeberg.org/${{ env.GITHUB_REPOSITORY }}/alpine-packwiz
|
||||
docker build -f Dockerfile -t $TAG:${{ env.GITHUB_SHA }} build-docker
|
||||
|
||||
publish:
|
||||
if: github.event_name == 'push'
|
||||
runs-on: docker
|
||||
container:
|
||||
image: code.forgejo.org/oci/docker:dind
|
||||
env:
|
||||
DOCKER_HOST: tcp://forgejo-dind:2375
|
||||
|
||||
steps:
|
||||
- name: Setup Docker & Node
|
||||
run: |
|
||||
apk add nodejs npm --update
|
||||
docker info
|
||||
|
||||
- name: Login to Forgejo
|
||||
run: |
|
||||
docker login codeberg.org -u ${{ env.GITHUB_ACTOR }} -p ${{ secrets.TOKEN }}
|
||||
|
||||
- name: Checkout the repo
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Build and Push
|
||||
run: |
|
||||
export TAG=codeberg.org/${{ env.GITHUB_REPOSITORY }}/alpine-packwiz
|
||||
docker build -f Dockerfile -t $TAG:${{ env.GITHUB_SHA }} build-docker
|
||||
docker tag $TAG:${{ env.GITHUB_SHA }} $TAG:latest
|
||||
docker push $TAG
|
||||
Loading…
Add table
Add a link
Reference in a new issue