Adding on home registry
This commit is contained in:
38
.github/workflows/build.yml
vendored
38
.github/workflows/build.yml
vendored
@@ -15,8 +15,6 @@ on:
|
||||
- develop
|
||||
|
||||
env:
|
||||
REGISTRY: ghcr.io
|
||||
NEXUS_REGISTRY: nexus.jamjon3.sytes.net:5443
|
||||
GITHUB_DOCKER_USER: ${{ github.actor }}
|
||||
NEXUS_DOCKER_USER: ${{ secrets.HOME_NEXUS_DOCKER_USER }}
|
||||
|
||||
@@ -38,7 +36,6 @@ jobs:
|
||||
- registry: nexus.jamjon3.sytes.net:5443
|
||||
user: NEXUS_DOCKER_USER
|
||||
password: HOME_NEXUS_DOCKER_PASSWORD
|
||||
|
||||
steps:
|
||||
# Downloads a copy of the code in your repository before running CI tests
|
||||
- name: Check out repository code
|
||||
@@ -52,24 +49,12 @@ jobs:
|
||||
login-server: ${{ matrix.registry }}
|
||||
username: ${{ env[matrix.user] }}
|
||||
password: ${{ secrets[matrix.password] }}
|
||||
# - name: Docker Login
|
||||
# uses: azure/docker-login@v1
|
||||
# with:
|
||||
# login-server: ${{ env.REGISTRY }}
|
||||
# username: ${{ github.actor }}
|
||||
# password: ${{ secrets.GITHUB_TOKEN }}
|
||||
# - name: Docker Login
|
||||
# uses: azure/docker-login@v1
|
||||
# with:
|
||||
# login-server: ${{ env.NEXUS_REGISTRY }}
|
||||
# username: ${{ secrets.HOME_NEXUS_DOCKER_USER }}
|
||||
# password: ${{ secrets.HOME_NEXUS_DOCKER_PASSWORD }}
|
||||
# This requires docker buildx which podman doesn't support
|
||||
# - name: Extract metadata (tags, labels) for Docker
|
||||
# id: meta
|
||||
# uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
|
||||
# with:
|
||||
# images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
|
||||
# images: ${{ matrix.registry }}/${{ env.IMAGE_NAME }}
|
||||
# - name: Build and push Docker images
|
||||
# uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
|
||||
# with:
|
||||
@@ -91,24 +76,3 @@ jobs:
|
||||
podman tag "${{ matrix.registry }}/$IMAGE_NAME:$VERSION" "${{ matrix.registry }}/$IMAGE_NAME:latest"
|
||||
podman push "${{ matrix.registry }}/$IMAGE_NAME:latest"
|
||||
fi
|
||||
# - name: Build the Docker image
|
||||
# run: |
|
||||
# IMAGE_NAME=$(echo "${{ github.repository }}" | tr '[:upper:]' '[:lower:]')
|
||||
# if [[ "$GITHUB_REF" =~ ^refs/tags.* ]]; then
|
||||
# VERSION=$GITHUB_REF_NAME
|
||||
# else
|
||||
# VERSION=$(echo "${GITHUB_REF_NAME}" | sed 's|/|-|g')
|
||||
# fi
|
||||
# podman build . --file Dockerfile --tag "$REGISTRY/$IMAGE_NAME:$VERSION"
|
||||
# podman tag "$REGISTRY/$IMAGE_NAME:$VERSION" "$NEXUS_REGISTRY/$IMAGE_NAME:$VERSION"
|
||||
# podman push "$REGISTRY/$IMAGE_NAME:$VERSION"
|
||||
# podman push "$NEXUS_REGISTRY/$IMAGE_NAME:$VERSION"
|
||||
# if [[ "$GITHUB_REF" =~ ^refs/tags.* ]]; then
|
||||
# podman tag "$REGISTRY/$IMAGE_NAME:$VERSION" "$REGISTRY/$IMAGE_NAME:latest"
|
||||
# podman tag "$NEXUS_REGISTRY/$IMAGE_NAME:$VERSION" "$NEXUS_REGISTRY/$IMAGE_NAME:latest"
|
||||
# podman push "$REGISTRY/$IMAGE_NAME:latest"
|
||||
# podman push "$NEXUS_REGISTRY/$IMAGE_NAME:latest"
|
||||
# fi
|
||||
# env:
|
||||
# REG_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
# # REG_TOKEN: ${{ secrets.REPO_GITHUB_TOKEN }}
|
||||
|
||||
Reference in New Issue
Block a user