Skip to content

Commit

Permalink
Update github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
burmanm committed Apr 10, 2024
1 parent e5973c5 commit ae0616b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 20 deletions.
17 changes: 3 additions & 14 deletions .github/workflows/buildAndDeploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3
- name: Cache Docker layers
uses: actions/cache@v3
uses: actions/cache@v4
id: cache
with:
path: /tmp/.buildx-cache
Expand All @@ -44,17 +44,6 @@ jobs:
uses: gradle/actions/setup-gradle@v3
- name: Build with Gradle
run: ./gradlew test

# - name: Run tests
# if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == 'datastax/cass-config-builder'
# env:
# ORG_GRADLE_PROJECT_dockerRegistry: docker.pkg.github.com
# ORG_GRADLE_PROJECT_dockerRegistryUsername: ${{ github.actor }}
# ORG_GRADLE_PROJECT_dockerRegistryPassword: ${{ secrets.GITHUB_TOKEN }}
# uses: eskatos/gradle-command-action@v1
# with:
# gradle-version: 6.0.1
# arguments: test
- name: Build docker image
env:
GITHUB_REPO_OWNER: ${{ github.repository_owner }}
Expand All @@ -63,7 +52,7 @@ jobs:
./scripts/build-push-images.sh
- name: Archive build logs
if: ${{ failure() }}
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: gradle-logs
path: build/reports
Expand Down
15 changes: 9 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,19 @@ jobs:
name: Release Cass Config Builder
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
submodules: true
- name: Login to DockerHub
run: echo "${{ secrets.DOCKERHUB_PASS }}" | docker login -u "${{ secrets.DOCKERHUB_USER }}" --password-stdin
- name: Setup Buildx
id: buildx
uses: crazy-max/ghaction-docker-buildx@v3
if: ${{ !env.ACT }}
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USER }}
password: ${{ secrets.DOCKERHUB_PASS }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Cache Docker layers
uses: actions/cache@v2
uses: actions/cache@v4
id: cache
with:
path: /tmp/.buildx-cache
Expand Down

0 comments on commit ae0616b

Please sign in to comment.