name: Build and Push Alpine Corretto JDK Image to git.winteraccess.id Registry on: push: branches: - master jobs: build: name: Build and push jdk corretto alpine based to git.winteraccess.id runs-on: ubuntu-latest container: image: ghcr.io/catthehacker/ubuntu:act-latest steps: - name: Check out repository code uses: actions/checkout@v3 - name: Login to git.winteraccess.id Registry uses: docker/login-action@v3 with: registry: git.winteraccess.id username: ${{ vars.REGISTRY_USERNAME }} password: ${{ secrets.REGISTRY_TOKEN }} - name: Build and push jdk 8 corretto uses: docker/build-push-action@v5 with: context: . file: Dockerfile.corretto-alpine build-args: | JAVA_VERSION=8 push: true tags: | git.winteraccess.id/${{ gitea.repository }}:8-corretto-alpine git.winteraccess.id/${{ gitea.repository }}:8-alpine - name: Build and push jdk 11 corretto uses: docker/build-push-action@v5 with: context: . file: Dockerfile.corretto-alpine build-args: | JAVA_VERSION=11 push: true tags: | git.winteraccess.id/${{ gitea.repository }}:11-corretto-alpine git.winteraccess.id/${{ gitea.repository }}:11-alpine - name: Build and push jdk 17 corretto uses: docker/build-push-action@v5 with: context: . file: Dockerfile.corretto-alpine build-args: | JAVA_VERSION=17 push: true tags: | git.winteraccess.id/${{ gitea.repository }}:17-corretto-alpine git.winteraccess.id/${{ gitea.repository }}:17-alpine - name: Build and push jdk 21 corretto uses: docker/build-push-action@v5 with: context: . file: Dockerfile.corretto-alpine build-args: | JAVA_VERSION=21 push: true tags: | git.winteraccess.id/${{ gitea.repository }}:21-corretto-alpine git.winteraccess.id/${{ gitea.repository }}:21-alpine - name: Build and push jdk 22 corretto uses: docker/build-push-action@v5 with: context: . file: Dockerfile.corretto-alpine build-args: | JAVA_VERSION=22 push: true tags: | git.winteraccess.id/${{ gitea.repository }}:22-corretto-alpine git.winteraccess.id/${{ gitea.repository }}:22-alpine - name: Build and push jdk 23 corretto uses: docker/build-push-action@v5 with: context: . file: Dockerfile.corretto-alpine build-args: | JAVA_VERSION=23 push: true tags: | git.winteraccess.id/${{ gitea.repository }}:23-corretto-alpine git.winteraccess.id/${{ gitea.repository }}:23-alpine git.winteraccess.id/${{ gitea.repository }}:alpine