Skip to content

Conversation

@nemchik
Copy link
Member

@nemchik nemchik commented Oct 25, 2020

Replaces Travis with GitHub Actions workflow.

Requires we set secrets in the repo setting https://github.com/linuxserver/docker-mods/settings/secrets for DOCKERPASS and DOCKERUSER (same as how it's setup in Travis).

Users only need to edit the 2 environment variables

      BASEIMAGE: "baseimagename" #replace
      MODNAME: "modname" #replace

Image push only happens if the branch matches the variables (so branches in development would not push). Build happens on all branches (so we can confirm build is successful without pushing images).

For now, new images should use this. Long term goal would be to replace Travis with GHA on all existing branches.

@nemchik nemchik requested a review from aptalca October 25, 2020 01:05
@nemchik
Copy link
Member Author

nemchik commented Oct 25, 2020

P.S. Confirmed with #89 that PRs will build but not push.

@nemchik
Copy link
Member Author

nemchik commented Oct 25, 2020

@aptalca
Copy link
Member

aptalca commented Oct 25, 2020

This looks great. We should probably also update the readme on the master branch with gha instead of travis after this is merged

@aptalca
Copy link
Member

aptalca commented Oct 25, 2020

DOCKERUSER and DOCKERPASS secrets are now added to repo

@nemchik nemchik mentioned this pull request Oct 25, 2020
@aptalca aptalca merged commit 3484da2 into template Oct 26, 2020
@aptalca aptalca deleted the template-gha branch October 26, 2020 00:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants