Skip to content

Bump openjdk from 17 to 11 #12

Bump openjdk from 17 to 11

Bump openjdk from 17 to 11 #12

Workflow file for this run

name: Docker
on:
push:
jobs:
build-and-push-image:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup Docker buildx
uses: docker/setup-buildx-action@v2
- name: Log in to the Container registry
uses: docker/login-action@v2
with:
username: stagoh
password: ${{ secrets.DOCKER_HUB_TOKEN }}
- name: Extract metadata (tags, labels) for Image
id: meta
uses: docker/metadata-action@v4
with:
images: stagoh/jgsuoj-judge-base
tags: latest
- name: Build and push Docker image Backend
uses: docker/build-push-action@v3
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
file: Dockerfile
cache-from: type=gha, scope=${{ github.workflow }}
cache-to: type=gha, scope=${{ github.workflow }}