Skip to content

Commit

Permalink
Update github actions version
Browse files Browse the repository at this point in the history
  • Loading branch information
ak-git committed Apr 28, 2024
1 parent 2e8df47 commit 8a42f22
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,23 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: corretto
java-version: 21
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
uses: gradle/gradle-build-action@v3
with:
gradle-version: 8.7
- name: Cache SonarCloud packages
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.sonar/cache
key: ${{ runner.os }}-sonar
restore-keys: ${{ runner.os }}-sonar
- name: Cache Gradle packages
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
Expand All @@ -39,7 +39,6 @@ jobs:
run: docker login -u a002k -p ${{ secrets.DOCKER_PASSWORD }}
- name: Build and tag the Docker image
run: |
COMMIT_SHA=$(echo $GITHUB_SHA | cut -c1-7)
docker build -t a002k/simple-app:$COMMIT_SHA -t a002k/simple-app:latest .
docker build -t a002k/simple-app:latest .
- name: Push the Docker image
run: docker push a002k/simple-app --all-tags

0 comments on commit 8a42f22

Please sign in to comment.