Github
Beküldte pzoli - 2025, április 21 - 1:15de
Kapcsolódó hivatkozások
- sulipy.hu
- Github git cheat sheet
- GitHub Actions Tutorial - Basic Concepts and CI/CD Pipeline with Docker (youtube)
- Github Actions (github)
- Build and push Docker images
- Using git-crypt
https://github.com/pzoli/[PROJECT_NAME]/settings/actions # Workflow permissions Read and Write permission (x) https://github.com/pzoli/[PROJECT_NAME]/settings # set secret
Docker build and push Action
name: Java CI with Maven on: push: branches: [ "main" ] pull_request: branches: [ "main" ] jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - name: Set up JDK 17 uses: actions/setup-java@v4 with: java-version: '17' distribution: 'temurin' cache: maven - name: Build with Maven run: mvn -B package -DskipTests --file pom.xml # Optional: Uploads the full dependency graph to GitHub to improve the quality of Dependabot alerts this repository can receive - name: Update dependency graph uses: advanced-security/maven-dependency-submission-action@571e99aab1055c2e71a1e2309b9691de18d6b7d6 - name: Log in to GitHub Container Registry if: github.event_name != 'pull_request' # Don't log in for PRs if not pushing uses: docker/login-action@v3 with: registry: docker.io image: pzoli77/fileinfo username: ${{secrets.DOCKERHUB_USERNAME}} password: ${{secrets.DOCKERHUB_PASSWORD}} - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 - name: Build and push uses: docker/build-push-action@v6 with: context: . file: ./Dockerfile push: true tags: pzoli77/fileinfo:latest
- A hozzászóláshoz be kell jelentkezni