Skip to content

Commit

Permalink
try to make github actions less stupid
Browse files Browse the repository at this point in the history
  • Loading branch information
CamJN committed Nov 20, 2023
1 parent 9326efe commit 0ecebb0
Showing 1 changed file with 8 additions and 16 deletions.
24 changes: 8 additions & 16 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,14 @@ jobs:
run: make build_customizable

- name: Log in to the Container registry
if: ${{ github.event.pull_request.merged && github.ref == 'refs/heads/master' }}
if: ${{ github.event.pull_request.merged || github.actor == 'CamJN' }}
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Push to github container registry
if: ${{ github.event.pull_request.merged && github.ref == 'refs/heads/master' }}
run: make release_customizable

build-ruby30:
Expand All @@ -54,15 +53,14 @@ jobs:
run: make build_ruby30

- name: Log in to the Container registry
if: ${{ github.event.pull_request.merged && github.ref == 'refs/heads/master' }}
if: ${{ github.event.pull_request.merged || github.actor == 'CamJN' }}
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Push to github container registry
if: ${{ github.event.pull_request.merged && github.ref == 'refs/heads/master' }}
run: make release_ruby30

build-ruby31:
Expand All @@ -81,15 +79,14 @@ jobs:
run: make build_ruby31

- name: Log in to the Container registry
if: ${{ github.event.pull_request.merged && github.ref == 'refs/heads/master' }}
if: ${{ github.event.pull_request.merged || github.actor == 'CamJN' }}
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Push to github container registry
if: ${{ github.event.pull_request.merged && github.ref == 'refs/heads/master' }}
run: make release_ruby31

build-ruby32:
Expand All @@ -108,15 +105,14 @@ jobs:
run: make build_ruby32

- name: Log in to the Container registry
if: ${{ github.event.pull_request.merged && github.ref == 'refs/heads/master' }}
if: ${{ github.event.pull_request.merged || github.actor == 'CamJN' }}
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Push to github container registry
if: ${{ github.event.pull_request.merged && github.ref == 'refs/heads/master' }}
run: make release_ruby32

build-jruby93:
Expand All @@ -135,15 +131,14 @@ jobs:
run: make build_jruby93

- name: Log in to the Container registry
if: ${{ github.event.pull_request.merged && github.ref == 'refs/heads/master' }}
if: ${{ github.event.pull_request.merged || github.actor == 'CamJN' }}
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Push to github container registry
if: ${{ github.event.pull_request.merged && github.ref == 'refs/heads/master' }}
run: make release_jruby93

build-jruby94:
Expand All @@ -162,15 +157,14 @@ jobs:
run: make build_jruby94

- name: Log in to the Container registry
if: ${{ github.event.pull_request.merged && github.ref == 'refs/heads/master' }}
if: ${{ github.event.pull_request.merged || github.actor == 'CamJN' }}
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Push to github container registry
if: ${{ github.event.pull_request.merged && github.ref == 'refs/heads/master' }}
run: make release_jruby94

build-nodejs:
Expand All @@ -189,15 +183,14 @@ jobs:
run: make build_nodejs

- name: Log in to the Container registry
if: ${{ github.event.pull_request.merged && github.ref == 'refs/heads/master' }}
if: ${{ github.event.pull_request.merged || github.actor == 'CamJN' }}
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Push to github container registry
if: ${{ github.event.pull_request.merged && github.ref == 'refs/heads/master' }}
run: make release_nodejs

build-full:
Expand All @@ -216,13 +209,12 @@ jobs:
run: make build_full

- name: Log in to the Container registry
if: ${{ github.event.pull_request.merged && github.ref == 'refs/heads/master' }}
if: ${{ github.event.pull_request.merged || github.actor == 'CamJN' }}
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Push to github container registry
if: ${{ github.event.pull_request.merged && github.ref == 'refs/heads/master' }}
run: make release_full

0 comments on commit 0ecebb0

Please sign in to comment.