Skip to content

Commit f85cde3

Browse files
committed
build: update container publishing & base images
- Added Hamdocker registry login - Updated base images to latest
1 parent 380957b commit f85cde3

3 files changed

Lines changed: 13 additions & 2 deletions

File tree

.github/workflows/publish-container.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,14 @@ jobs:
7373
username: ${{env.USER}}
7474
password: ${{secrets.GITHUB_TOKEN}}
7575

76+
- name: Login to Hamdocker.ir
77+
if: github.event_name != 'pull_request'
78+
uses: docker/login-action@v3
79+
with:
80+
registry: registry.hamdocker.ir
81+
username: ${{ secrets.HAMDOCKER_USERNAME }}
82+
password: ${{ secrets.HAMDOCKER_PASSWORD }}
83+
7684
- name: 🏗 Extract metadata
7785
if: ${{ steps.file_change.outputs.container_folder != 'false' }}
7886
id: meta
@@ -81,11 +89,14 @@ jobs:
8189
github-token: ${{secrets.GITHUB_TOKEN}}
8290
images: |
8391
name=ghcr.io/${{env.USER}}/${{matrix.path}},enable=true
92+
registry.hamdocker.ir/${{ secrets.HAMDOCKER_USERNAME }}/${{ github.event.repository.name }}
8493
tags: |
8594
type=semver,enable=true,pattern={{major}}
8695
type=semver,enable=true,pattern={{major}}.{{minor}}
8796
type=semver,enable=true,pattern={{version}}
8897
type=ref,enable=true,event=branch
98+
type=sha,enable=true,priority=100,prefix=sha-,suffix=,format=short
99+
type=raw,enable={{is_default_branch}},value=latest
89100
90101
- name: 🚀 Build and export to docker
91102
if: ${{ steps.file_change.outputs.container_folder != 'false' }}

nginx/cdn/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ghcr.io/gecut/nginx-core:3.5.0
1+
FROM ghcr.io/gecut/nginx-core:latest
22

33
# COPY etc/nginx/ /etc/nginx/
44
# COPY default-data/ /default-data/

nginx/core/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ghcr.io/gecut/nginx:3.5.0
1+
FROM ghcr.io/gecut/nginx:latest
22

33
RUN apk add --no-cache curl
44
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --start-interval=1s --retries=3 CMD curl -fso /dev/null http://localhost/server-info || exit 1

0 commit comments

Comments
 (0)