Skip to content

Update all (#1627) #888

Update all (#1627)

Update all (#1627) #888

name: cd
on:
workflow_dispatch:
push:
branches: "master"
jobs:
main:
runs-on: ubuntu-24.04
steps:
- name: Checkout Source
uses: actions/checkout@v4
- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Azure Container Repository
uses: docker/login-action@v3
with:
registry: ${{ secrets.REGISTRY_LOGIN_SERVER }}
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_PASSWORD }}
- run: |
echo JENKINS_VERSION=$(grep "FROM jenkins" jenkins/Dockerfile | cut -d: -f2 | cut -d- -f1) >> $GITHUB_ENV
- name: Build and Push
id: docker_build
uses: docker/build-push-action@v6
with:
context: ./jenkins
push: true
tags: ${{ secrets.REGISTRY_LOGIN_SERVER }}/jenkins/jenkins:${{ env.JENKINS_VERSION }}-${{ github.run_number }}