This is an automated email from the ASF dual-hosted git repository.
msciabarra pushed a commit to branch main
in repository
https://gitbox.apache.org/repos/asf/openserverless-devcontainer.git
The following commit(s) were added to refs/heads/main by this push:
new e704655 Refactor DockerHub login and repository settings
e704655 is described below
commit e7046558156861bd62540d88bdaca5aee34842f1
Author: Michele Sciabarra <[email protected]>
AuthorDate: Wed Mar 11 16:47:11 2026 +0000
Refactor DockerHub login and repository settings
Updated DockerHub credentials and simplified repo handling.
---
.github/workflows/images.yml | 33 ++++-----------------------------
1 file changed, 4 insertions(+), 29 deletions(-)
diff --git a/.github/workflows/images.yml b/.github/workflows/images.yml
index 811972d..ccf74f4 100644
--- a/.github/workflows/images.yml
+++ b/.github/workflows/images.yml
@@ -47,42 +47,17 @@ jobs:
if: ${{ github.event_name != 'pull_request' }}
run: |
echo "IMG_TAG=$(git describe --tags --abbrev=0)" >> "$GITHUB_ENV"
- - name: Use non ASF docker hub repo
- if: ${{ github.repository_owner != 'apache'}}
- run: |
- echo "BASE_REPO=apache" >> "$GITHUB_ENV"
- - name: Use ASF docker hub repo
- if: ${{ github.repository_owner == 'apache'}}
- run: |
- echo "BASE_REPO=apache" >> "$GITHUB_ENV"
- - name: Load DockerHub secrets
- uses: 1password/load-secrets-action@v2
- with:
- # Export loaded secrets as environment variables
- export-env: true
- env:
- OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }}
- OPS_DOCKERHUB_USER: op://OpenServerless/ops_github_dockerhub/username
- OPS_DOCKERHUB_TOKEN:
op://OpenServerless/ops_github_dockerhub/password
- OPS_BASE_COMMON_IMAGE:
op://OpenServerless/ops_github_dockerhub/base_common_image
- name: Registry login
uses: docker/login-action@v3
with:
- registry: registry.hub.docker.com
- username: ${{ env.OPS_DOCKERHUB_USER }}
- password: ${{ env.OPS_DOCKERHUB_TOKEN }}
+ username: ${{ secrets.DOCKERHUB_USER }}
+ password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- #with:
- # version: "lab:latest"
- # driver: cloud
- # endpoint: "sciabarracom/openserverless-builder"
- # use: true
- name: Build and push
uses: docker/build-push-action@v5
with:
- context: .
platforms: linux/amd64,linux/arm64
- tags: ${{ env.BASE_REPO }}/openserverless-devcontainer:${{
env.IMG_TAG }}
- outputs: 'type=registry,push=true'
+ tags: apache/openserverless-devcontainer:${{ env.IMG_TAG }}
+ push: true