Compare commits
7 Commits
8ea43e5561
...
v0.0.1
| Author | SHA1 | Date | |
|---|---|---|---|
| f2cfcf68dd | |||
| 43576c1736 | |||
| 5b5c5d6664 | |||
| f76c193bc5 | |||
| c5f6e2a2d5 | |||
| 2b79cea3f5 | |||
| 471389b69e |
@@ -8,7 +8,7 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
runs-on: gitea-official-runner
|
runs-on: gitea-official-runner
|
||||||
container:
|
container:
|
||||||
image: harbor.merlin.xin/testing/merlin/builder:v0.0.0
|
image: harbor.merlin.xin/testing/merlin/action_builder:471389b69e23417ab4e86981d109c79635d7219b
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
runs-on: gitea-official-runner
|
runs-on: gitea-official-runner
|
||||||
container:
|
container:
|
||||||
image: harbor.merlin.xin/testing/merlin/builder:v0.0.0
|
image: harbor.merlin.xin/testing/merlin/action_builder:471389b69e23417ab4e86981d109c79635d7219b
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@@ -21,11 +21,10 @@ jobs:
|
|||||||
- name: Build and push Docker images
|
- name: Build and push Docker images
|
||||||
env:
|
env:
|
||||||
HARBOR_URL: ${{ vars.HARBOR_URL }}
|
HARBOR_URL: ${{ vars.HARBOR_URL }}
|
||||||
TAG: ${{ github.sha }}
|
|
||||||
REPOSITORY: ${{ github.repository }}
|
REPOSITORY: ${{ github.repository }}
|
||||||
run: |
|
run: |
|
||||||
ROOT_DIR=$(pwd)
|
ROOT_DIR=$(pwd)
|
||||||
IMAGE_NAME="${HARBOR_URL}/release/$REPOSITORY:${TAG}"
|
IMAGE_NAME="${HARBOR_URL}/release/$REPOSITORY:$GITHUB_REF_NAME"
|
||||||
echo "Building image: ${IMAGE_NAME}"
|
echo "Building image: ${IMAGE_NAME}"
|
||||||
docker build -t ${IMAGE_NAME} .
|
docker build -t ${IMAGE_NAME} .
|
||||||
echo "Pushing image: ${IMAGE_NAME}"
|
echo "Pushing image: ${IMAGE_NAME}"
|
||||||
|
|||||||
Reference in New Issue
Block a user