Compare commits
15 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 3a36b00b92 | |||
| ade0f19cae | |||
| d882c4166c | |||
| 1b74421e7e | |||
| 3d48465868 | |||
| a982172c39 | |||
| 25ed20032e | |||
| 10a5e1d6fb | |||
| 6a09b2855b | |||
| 91eec28708 | |||
| 90f5a16def | |||
| 7c9b777e64 | |||
| 0b728fad30 | |||
| c586229d98 | |||
| 8594359d52 |
@@ -20,7 +20,7 @@ jobs:
|
||||
uses: actions/checkout@v4
|
||||
- name: Docker meta
|
||||
id: meta
|
||||
uses: docker/metadata-action@v5
|
||||
uses: docker/metadata-action@v5.5.1
|
||||
with:
|
||||
# list of Docker images to use as base name for tags
|
||||
images: |
|
||||
@@ -34,10 +34,10 @@ jobs:
|
||||
type=semver,pattern={{version}}
|
||||
type=sha
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
uses: docker/setup-buildx-action@v3.2.0
|
||||
- name: Login to Harbor
|
||||
if: github.event_name != 'pull_request'
|
||||
uses: docker/login-action@v3
|
||||
uses: docker/login-action@v3.1.0
|
||||
with:
|
||||
registry: harbor.evanshome.io
|
||||
username: ${{ secrets.HARBOR_USERNAME }}
|
||||
@@ -49,7 +49,7 @@ jobs:
|
||||
|
||||
|
||||
# - name: Build and push
|
||||
# uses: docker/build-push-action@v5
|
||||
# uses: docker/build-push-action@v5.3.0
|
||||
# with:
|
||||
# context: ./Docker/
|
||||
# push: ${{ github.event_name != 'pull_request' }}
|
||||
|
||||
@@ -26,7 +26,7 @@ jobs:
|
||||
|
||||
- name: Docker meta
|
||||
id: meta
|
||||
uses: docker/metadata-action@v5
|
||||
uses: docker/metadata-action@v5.5.1
|
||||
with:
|
||||
# list of Docker images to use as base name for tags
|
||||
images: |
|
||||
@@ -43,17 +43,16 @@ jobs:
|
||||
type=semver,pattern={{version}}
|
||||
type=sha
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
uses: docker/setup-buildx-action@v3.2.0
|
||||
- name: Login to Harbor
|
||||
if: github.event_name != 'pull_request'
|
||||
uses: docker/login-action@v3
|
||||
uses: docker/login-action@v3.1.0
|
||||
with:
|
||||
registry: harbor.evanshome.io
|
||||
username: ${{ secrets.HARBOR_USERNAME }}
|
||||
password: ${{ secrets.HARBOR_PASSWORD }}
|
||||
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@v5
|
||||
uses: docker/build-push-action@v5.3.0
|
||||
with:
|
||||
context: ./Docker/
|
||||
push: true
|
||||
|
||||
@@ -11,14 +11,14 @@ stages:
|
||||
##- push_dockerhub
|
||||
|
||||
build:
|
||||
image: docker:24.0.7-dind
|
||||
image: docker:26.0.0-dind
|
||||
stage: build
|
||||
only:
|
||||
refs:
|
||||
- tags
|
||||
- branches
|
||||
services:
|
||||
- name: docker:24.0.7-dind
|
||||
- name: docker:26.0.0-dind
|
||||
command: ["--tls=false"]
|
||||
variables:
|
||||
DOCKER_DRIVER: overlay2
|
||||
@@ -31,7 +31,7 @@ build:
|
||||
- docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA
|
||||
|
||||
release:
|
||||
image: node:20.11.1-alpine3.18
|
||||
image: node:20.12.1-alpine3.19
|
||||
stage: release
|
||||
only:
|
||||
refs:
|
||||
@@ -57,10 +57,10 @@ release:
|
||||
- CHANGELOG.md
|
||||
|
||||
push local:
|
||||
image: docker:24.0.7-dind
|
||||
image: docker:26.0.0-dind
|
||||
stage: push_local
|
||||
services:
|
||||
- name: docker:24.0.7-dind
|
||||
- name: docker:26.0.0-dind
|
||||
command: ["--tls=false"]
|
||||
variables:
|
||||
DOCKER_DRIVER: overlay2
|
||||
|
||||
Reference in New Issue
Block a user