Skip to content

Commit

Permalink
CI tests.yml: Deploy the retired Docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
sjackman committed Sep 5, 2022
1 parent 4adb638 commit 301ae8f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,16 @@ jobs:
docker tag brew "homebrew/ubuntu22.04:master"
docker push "homebrew/ubuntu22.04:master"
- name: Deploy the retired Docker image to GitHub Packages and Docker Hub
if: github.ref == 'refs/heads/master'
run: |
printf 'FROM alpine\nCMD echo "Error: homebrew/ubuntu16.04:master is retired. Use homebrew/brew or homebrew/ubuntu16.04 or homebrew/ubuntu22.04:master"; exit 1\n' |
docker build --tag=retired -
docker tag retired "ghcr.io/homebrew/ubuntu16.04:master"
docker push "ghcr.io/homebrew/ubuntu16.04:master"
docker tag retired "homebrew/ubuntu16.04:master"
docker push "homebrew/ubuntu16.04:master"
tests:
name: ${{ matrix.name }}
needs: syntax
Expand Down

0 comments on commit 301ae8f

Please sign in to comment.