chore: initial version
This commit is contained in:
33
.gitea/workflows/build-dev-img.yml
Normal file
33
.gitea/workflows/build-dev-img.yml
Normal file
@@ -0,0 +1,33 @@
|
||||
on:
|
||||
workflow_dispatch:
|
||||
jobs:
|
||||
build-and-push:
|
||||
runs-on: default
|
||||
container:
|
||||
image: docker:26-cli
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
shell: sh
|
||||
run: |
|
||||
set -euo pipefail
|
||||
git clone --depth 1 https://${{ secrets.REPOSITORY_USER }}:${{ secrets.REPOSITORY_TOKEN }}@git.nas-technologies.com/lbatuska/drogon_docker.git
|
||||
- name: Login to registry
|
||||
shell: sh
|
||||
run: |
|
||||
echo "${{ secrets.PACKAGE_RW }}" | \
|
||||
docker login git.nas-technologies.com \
|
||||
-u automation-user --password-stdin
|
||||
- name: Build and tag Docker image
|
||||
shell: sh
|
||||
run: |
|
||||
cd drogon_docker
|
||||
IMAGE="git.nas-technologies.com/lbatuska/cpp-dev"
|
||||
|
||||
docker build -f Dockerfile.cpp-dev\
|
||||
--build-arg DROGON_TAG="${{ gitea.ref_name }}" \
|
||||
-t "$IMAGE:${{ gitea.ref_name }}-latest" \
|
||||
.
|
||||
- name: Push container
|
||||
shell: sh
|
||||
run: |
|
||||
docker push --all-tags git.nas-technologies.com/lbatuska/cpp-dev
|
||||
33
.gitea/workflows/build-drogon-img.yml
Normal file
33
.gitea/workflows/build-drogon-img.yml
Normal file
@@ -0,0 +1,33 @@
|
||||
on:
|
||||
workflow_dispatch:
|
||||
jobs:
|
||||
build-and-push:
|
||||
runs-on: default
|
||||
container:
|
||||
image: docker:26-cli
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
shell: sh
|
||||
run: |
|
||||
set -euo pipefail
|
||||
git clone --depth 1 https://${{ secrets.REPOSITORY_USER }}:${{ secrets.REPOSITORY_TOKEN }}@git.nas-technologies.com/lbatuska/drogon_docker.git
|
||||
- name: Login to registry
|
||||
shell: sh
|
||||
run: |
|
||||
echo "${{ secrets.PACKAGE_RW }}" | \
|
||||
docker login git.nas-technologies.com \
|
||||
-u automation-user --password-stdin
|
||||
- name: Build and tag Docker image
|
||||
shell: sh
|
||||
run: |
|
||||
cd drogon_docker
|
||||
IMAGE="git.nas-technologies.com/lbatuska/drogon"
|
||||
|
||||
docker build -f Dockerfile.drogon\
|
||||
--build-arg DROGON_TAG="${{ gitea.ref_name }}" \
|
||||
-t "$IMAGE:${{ gitea.ref_name }}" \
|
||||
.
|
||||
- name: Push container
|
||||
shell: sh
|
||||
run: |
|
||||
docker push --all-tags git.nas-technologies.com/lbatuska/drogon
|
||||
Reference in New Issue
Block a user