Skip to content

Commit

Permalink
Remove push of PR images
Browse files Browse the repository at this point in the history
Signed-off-by: Lucas Roesler <roesler.lucas@gmail.com>
  • Loading branch information
LucasRoesler authored and alexellis committed Sep 8, 2021
1 parent ce23842 commit 7448775
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 18 deletions.
16 changes: 0 additions & 16 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,22 +41,6 @@ jobs:
tags: |
${{ env.IMAGE_PREFIX }}:${{ github.sha }}
- name: Login to Docker Registry
uses: docker/login-action@v1
if: ${{ github.event_name == 'pull_request' }}
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Publish Pull Request test image
uses: contiamo/retag-push@v1.0.0
if: ${{ github.event_name == 'pull_request' }}
with:
source: ${{ env.IMAGE_PREFIX }}:${{ github.sha }}
target: |
${{ env.IMAGE_PREFIX }}:pr-${{github.event.number}}
build-multi-arch:
# run in parallel to build because multi-arch is slow
runs-on: ubuntu-latest
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,13 @@ jobs:
run: echo ::set-output name=TAG::${GITHUB_REF#refs/tags/}
- name: Set Username/Repo and ImagePrefix as ENV vars
run: |
echo "USER_REPO=${GITHUB_REPOSITORY,,}" >>${GITHUB_ENV} && \
echo "IMAGE_PREFIX=ghcr.io/${GITHUB_REPOSITORY,,}" >>${GITHUB_ENV}
- name: Login to Docker Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ env.USER_REPO }}
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Push containers
uses: docker/build-push-action@v2
Expand Down

0 comments on commit 7448775

Please sign in to comment.