Skip to content

💚 more permissions to write packages #8

💚 more permissions to write packages

💚 more permissions to write packages #8

Workflow file for this run

name: GraalVM build
on:
push:
branches:
- main
jobs:
build-and-deploy:
runs-on: ubuntu-latest
permissions: write-all
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup GraalVM
uses: graalvm/setup-graalvm@v1
with:
java-version: '17.0.7'
distribution: 'graalvm'
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Build native docker image
run: ./gradlew bootBuildImage --imageName=${{ github.repository }}:latest
- name: Log in to GitHub Packages
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
- name: Push Docker image to GitHub Packages
run: |
docker tag ${{ github.repository }}:latest ghcr.io/${{ github.repository }}:latest
docker push ghcr.io/${{ github.repository }}:latest