Skip to content

Commit

Permalink
Test: container publish
Browse files Browse the repository at this point in the history
  • Loading branch information
hannahramadan committed Jun 5, 2024
1 parent 3ef64ea commit 7fedaee
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
runs-on: ubuntu-latest
needs: check-modified-files
# run only if files were modified, the workflow was manually invoked, or doing a release
if: needs.check-modified-files.outputs.files-changed == 'true' || github.event_name == 'workflow_dispatch' || github.event_name == 'release' && endsWith(github.ref, '_ruby')
if: needs.check-modified-files.outputs.files-changed == 'true' || github.event_name == 'workflow_dispatch' || (github.event_name == 'release' && endsWith(github.ref, '_ruby'))

steps:
- name: Checkout code
Expand Down Expand Up @@ -108,7 +108,7 @@ jobs:
license_key: ${{ secrets.NEW_RELIC_LICENSE_KEY }}

publish:
if: github.event_name == 'release' && endsWith(github.ref, '_ruby')
# if: github.event_name == 'release' && endsWith(github.ref, '_ruby')
runs-on: ubuntu-latest
needs:
- test
Expand Down Expand Up @@ -143,8 +143,10 @@ jobs:
- name: Login to Docker Hub Container Registry
uses: docker/login-action@e92390c5fb421da1463c202d546fed0ec5c39f20 # 3.1.0
with:
username: ${{ github.repository_owner }}
password: ${{ secrets.DOCKER_TOKEN }}
# username: ${{ github.repository_owner }}
username: ${{ secret.RUBY_AGENT_TEST_USERNAME }}
# password: ${{ secrets.DOCKER_TOKEN }}
password: ${{ secrets.RUBY_AGENT_TEST_DOCKER_TOKEN }}

- name: Build and publish init container image
uses: docker/build-push-action@2cdde995de11925a030ce8070c3d77a52ffcf1c0 # 5.3.0
Expand Down

0 comments on commit 7fedaee

Please sign in to comment.