Skip to content

Commit a03a657

Browse files
committed
More updates to docker release
1 parent f0577a3 commit a03a657

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

.github/workflows/build.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ name: Gradle Build
55

66
on: [push]
77

8+
permissions:
9+
contents: read
10+
packages: write
11+
812
jobs:
913
build:
1014
runs-on: ubuntu-latest
@@ -26,17 +30,17 @@ jobs:
2630
- name: Build with Gradle
2731
run: ./gradlew build
2832
- name: Docker Login
29-
uses: docker/login-action@v1.6.0
33+
uses: docker/login-action@v3
3034
if: github.repository == 'freyacodes/ukulele'
3135
with:
3236
registry: ghcr.io
3337
username: ${{github.repository_owner}}
3438
password: ${{secrets.GITHUB_TOKEN}}
35-
- uses: nelonoel/branch-name@v1.0.1
36-
name: Get branch name
39+
- name: Get branch name
3740
if: github.repository == 'freyacodes/ukulele'
41+
run: echo "BRANCH_NAME=${GITHUB_REF#refs/heads/}" >> $GITHUB_ENV
3842
- name: Docker build and push
39-
uses: docker/build-push-action@v2.2.0
43+
uses: docker/build-push-action@v6
4044
if: github.repository == 'freyacodes/ukulele'
4145
with:
4246
tags: ghcr.io/freyacodes/ukulele:${{env.BRANCH_NAME}}

0 commit comments

Comments
 (0)