Skip to content

Commit

Permalink
We should push always
Browse files Browse the repository at this point in the history
  • Loading branch information
hsbt committed Sep 3, 2024
1 parent f90120f commit bd0bcf1
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,6 @@ on:
type: boolean
default: false
required: true
NOPUSH:
description: Do not push the images (for debugging)
type: boolean
default: false
required: true

jobs:
build:
Expand All @@ -50,14 +45,12 @@ jobs:
echo "RUBY_VERSION=${{ github.event.inputs.RUBY_VERSION || github.event.client_payload.ruby_version }}" >> $GITHUB_ENV
echo "ARCH=${{ github.event.inputs.ARCH || github.event.client_payload.arch }}" >> $GITHUB_ENV
echo "LATEST=${{ github.event.inputs.LATEST || github.event.client_payload.latest }}" >> $GITHUB_ENV
echo "NOPUSH=${{ github.event.inputs.NOPUSH }}" >> $GITHUB_ENV
- name: Show parameters
run: |
echo $RUBY_VERSION
echo $ARCH
echo $LATEST
echo $NOPUSH
- name: Build image
run: |
Expand All @@ -80,7 +73,6 @@ jobs:

- name: Push images to DockerHub
run: docker push rubylang/ruby --all-tags
if: ${{ env.NOPUSH == 'false' }}

- name: Renaming images
run: |
Expand All @@ -95,4 +87,3 @@ jobs:

- name: Push image to GitHub Container Registry
run: docker push ghcr.io/${{ github.repository_owner }}/ruby --all-tags
if: ${{ env.NOPUSH == 'false' }}

0 comments on commit bd0bcf1

Please sign in to comment.