Skip to content

Downgrade JDK from 11.0.20 to to 11.0.19 (#76) #1161

Downgrade JDK from 11.0.20 to to 11.0.19 (#76)

Downgrade JDK from 11.0.20 to to 11.0.19 (#76) #1161

Workflow file for this run

name: ci
on:
workflow_dispatch:
push:
branches: [master]
pull_request:
branches: [master]
schedule:
- cron: 0 0 * * *
jobs:
build-and-push:
runs-on: ubuntu-latest
env:
DOCKERHUB_USERNAME: felipecrs
IMAGE_NAME: jenkins-agent-dind
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Docker meta
id: docker_meta
uses: docker/metadata-action@v4
with:
images: |
${{ env.DOCKERHUB_USERNAME }}/${{ env.IMAGE_NAME }}
ghcr.io/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}
tags: |
type=schedule,pattern=nightly
type=schedule,pattern={{date 'YYYYMMDD'}}
type=ref,event=branch
type=ref,event=pr
type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', github.event.repository.default_branch) || github.event_name == 'schedule' }}
type=sha,enable=${{ github.event_name == 'push' }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ env.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v4
with:
context: .
push: true
tags: ${{ steps.docker_meta.outputs.tags }}
labels: ${{ steps.docker_meta.outputs.labels }}
- if: github.event_name == 'push' && github.ref == format('refs/heads/{0}', github.event.repository.default_branch)
name: Update Docker Hub description
uses: peter-evans/dockerhub-description@v3
env:
DOCKERHUB_PASSWORD: ${{ secrets.DOCKERHUB_PASSWORD }}
DOCKERHUB_REPOSITORY: ${{ env.DOCKERHUB_USERNAME }}/${{ env.IMAGE_NAME }}