init
This commit is contained in:
27
.gitea/workflows/build.yml
Normal file
27
.gitea/workflows/build.yml
Normal file
@@ -0,0 +1,27 @@
|
||||
name: Build Archlinux-Base Image
|
||||
run-name: Build Archlinux-Base Image
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
env:
|
||||
DOCKER_BUILDKIT: 1
|
||||
DOCKER_CLI_EXPERIMENTAL: enabled
|
||||
|
||||
jobs:
|
||||
base:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Clone repository
|
||||
uses: actions/checkout@v4
|
||||
- name: Login to GiteaDockerRepo
|
||||
run: |
|
||||
docker login --username "${{ secrets.DOCKERHUB_USERNAME }}" --password "${{ secrets.DOCKERHUB_TOKEN }}" ${{ vars.currect_gitea_url }}
|
||||
- name: Build latest archlinux Docker image and push to GiteaRepo
|
||||
run: |
|
||||
pwd
|
||||
ls
|
||||
docker build --network=host -t nebulabeat-mc:latest --no-cache .
|
||||
docker image tag nebulabeat-mc:latest ${{ vars.currect_gitea_url }}/vtbhelper/nebulabeat-mc:latest
|
||||
docker image push ${{ vars.currect_gitea_url }}/vtbhelper/nebulabeat-mc:latest
|
||||
Reference in New Issue
Block a user