Skip to content

Commit

Permalink
Switch to GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
chessbyte committed Feb 9, 2022
1 parent e17eb17 commit 422cc63
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 7 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: CI

on: [push, pull_request]

jobs:
ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up registry credentials
if: ${{ github.event_name == 'push' && github.repository_owner == 'ManageIQ' }}
run: |
echo "REGISTRY_USERNAME=${{ secrets.REGISTRY_USERNAME }}" >> $GITHUB_ENV
echo "REGISTRY_PASSWORD=${{ secrets.REGISTRY_PASSWORD }}" >> $GITHUB_ENV
- name: Run container build script
run: bin/build_container_image
6 changes: 0 additions & 6 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion bin/build_container_image
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ set +v

docker images

[[ $TRAVIS_PULL_REQUEST != "false" ]] && exit 0
[[ $GITHUB_EVENT_NAME == "pull_request" ]] && exit 0

echo "$REGISTRY_PASSWORD" | docker login $REGISTRY -u $REGISTRY_USERNAME --password-stdin

Expand Down

0 comments on commit 422cc63

Please sign in to comment.