typo(dockerfile): label ref #34
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
env: | |
USER: devopsiaci | |
REPO: cruise-control | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
release: | |
name: Create tag release | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
jdk_version: | |
- 11 | |
- 11.0.10 | |
- 11.0.11-9 | |
- 11.0.11 | |
- 11.0.12 | |
- 11.0.13 | |
- 11.0.14 | |
- 11.0.14.1 | |
- 11.0.15 | |
- 11.0.4 | |
- 11.0.5 | |
- 11.0.6 | |
- 11.0.7 | |
- 11.0.8 | |
- 11.0.9 | |
- 11.0.9.1 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Log in to Docker Hub | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_PASSWORD }} | |
- name: Build and push Docker image | |
uses: docker/build-push-action@v3 | |
with: | |
context: . | |
push: true | |
platforms: linux/amd64 | |
build-args: | | |
OPENJDK_VERSION=${{ matrix.jdk_version }} | |
tags: ${{ env.USER }}/${{ env.REPO }}:openjdk-${{ matrix.jdk_version }},${{ env.USER }}/${{ env.REPO }}:${{ matrix.jdk_version }} | |
- name: Update Docker registry description | |
uses: peter-evans/dockerhub-description@v3 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_PASSWORD }} | |
repository: ${{ env.USER }}/${{ env.REPO }} |