-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
304 additions
and
170 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
* | ||
|
||
!Dockerfile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
name: CI | ||
|
||
on: | ||
pull_request: | ||
push: | ||
schedule: | ||
- cron: '0 12 * * 3' | ||
|
||
env: | ||
PUBLISH: ${{ github.event_name == 'push' | ||
&& (startsWith(github.ref, 'refs/tags/0') | ||
|| startsWith(github.ref, 'refs/tags/1') | ||
|| startsWith(github.ref, 'refs/tags/2') | ||
|| startsWith(github.ref, 'refs/tags/3') | ||
|| startsWith(github.ref, 'refs/tags/4') | ||
|| startsWith(github.ref, 'refs/tags/5') | ||
|| startsWith(github.ref, 'refs/tags/6') | ||
|| startsWith(github.ref, 'refs/tags/7') | ||
|| startsWith(github.ref, 'refs/tags/8') | ||
|| startsWith(github.ref, 'refs/tags/9')) }} | ||
|
||
jobs: | ||
docker: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: docker/setup-buildx-action@v1 | ||
|
||
- uses: satackey/[email protected] | ||
continue-on-error: true | ||
if: ${{ env.PUBLISH != 'true' && github.ref != 'refs/heads/master' }} | ||
- run: make docker.image no-cache=no tag=build-${{ github.run_number }} | ||
if: ${{ env.PUBLISH != 'true' && github.ref != 'refs/heads/master' }} | ||
|
||
- run: make docker.image no-cache=yes tag=build-${{ github.run_number }} | ||
if: ${{ env.PUBLISH == 'true' || github.ref == 'refs/heads/master' }} | ||
|
||
- run: make npm.install | ||
- run: make test.docker tag=build-${{ github.run_number }} | ||
|
||
- name: Login to GitHub Container Registry | ||
uses: docker/login-action@v1 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.repository_owner }} | ||
password: ${{ secrets.GCR_BOT_PAT }} | ||
if: ${{ env.PUBLISH == 'true' }} | ||
- name: Login to Quay.io | ||
uses: docker/login-action@v1 | ||
with: | ||
registry: quay.io | ||
username: instrumentisto+bot | ||
password: ${{ secrets.QUAYIO_ROBOT_TOKEN }} | ||
if: ${{ env.PUBLISH == 'true' }} | ||
- name: Login to Docker Hub | ||
uses: docker/login-action@v1 | ||
with: | ||
username: instrumentistobot | ||
password: ${{ secrets.DOCKERHUB_BOT_PASS }} | ||
if: ${{ env.PUBLISH == 'true' }} | ||
|
||
- run: make docker.tags of=build-${{ github.run_number }} | ||
if: ${{ env.PUBLISH == 'true' }} | ||
- run: make docker.push | ||
if: ${{ env.PUBLISH == 'true' }} | ||
|
||
# On GitHub Container Registry README is automatically updated on pushes. | ||
- name: Update README on Quay.io | ||
uses: christian-korneck/update-container-description-action@v1 | ||
env: | ||
DOCKER_APIKEY: ${{ secrets.QUAYIO_API_TOKEN }} | ||
with: | ||
provider: quay | ||
destination_container_repo: quay.io/instrumentisto/geckodriver | ||
readme_file: README.md | ||
if: ${{ env.PUBLISH == 'true' }} | ||
- name: Update README on Docker Hub | ||
uses: christian-korneck/update-container-description-action@v1 | ||
env: | ||
DOCKER_USER: instrumentistobot | ||
DOCKER_PASS: ${{ secrets.DOCKERHUB_BOT_PASS }} | ||
with: | ||
provider: dockerhub | ||
destination_container_repo: instrumentisto/geckodriver | ||
readme_file: README.md | ||
if: ${{ env.PUBLISH == 'true' }} | ||
|
||
- name: Parse release version from Git tag | ||
id: release | ||
run: echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/} | ||
if: ${{ env.PUBLISH == 'true' }} | ||
- name: Parse CHANGELOG link | ||
id: changelog | ||
run: echo ::set-output name=LINK::https://github.com/${{ github.repository }}/blob/${{ steps.release.outputs.VERSION }}/CHANGELOG.md#$(sed -n '/^## \[${{ steps.release.outputs.VERSION }}\]/{s/^## \[\(.*\)\][^0-9]*\([0-9].*\)/\1--\2/;s/[^0-9a-z-]*//g;p;}' CHANGELOG.md) | ||
if: ${{ env.PUBLISH == 'true' }} | ||
- name: Release on GitHub | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: ${{ steps.release.outputs.VERSION }} | ||
release_name: ${{ steps.release.outputs.VERSION }} | ||
body: | | ||
[Changelog](${{ steps.changelog.outputs.LINK }}) | ||
if: ${{ env.PUBLISH == 'true' }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,5 +3,6 @@ | |
.DS_Store | ||
|
||
/node_modules/ | ||
/package-lock.json | ||
/yarn.lock | ||
/yarn-error.log |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
geckodriver image changelog | ||
=========================== | ||
|
||
All user visible changes to this project will be documented in this file. This project uses [Semantic Versioning 2.0.0]. | ||
|
||
|
||
|
||
|
||
## [84.0.2-driver0.29.0-r0] · 2021-01-19 | ||
[84.0.2-driver0.29.0-r0]: /../../tree/84.0.2-driver0.29.0-r0 | ||
|
||
[Diff](/../../compare/eb70d69cfbb923e4c219c1631a0fee404f192ee2...84.0.2-driver0.29.0-r0) | ||
|
||
### Upgraded | ||
|
||
- geckodriver 0.29.0: <https://github.com/mozilla/geckodriver/releases/tag/v0.29.0> | ||
|
||
### Fixed | ||
|
||
- Absent `MOZ_HEADLESS=1` env var to ensure headless mode ([#4], [#3]). | ||
|
||
[#3]: /../../issues/3 | ||
[#4]: /../../pull/4 | ||
|
||
|
||
|
||
|
||
## Previous releases | ||
|
||
See [GitHub commits](/../../commits?after=63c662a83d1a9851c7cd81f35d0f5b646dbcdb84+0). | ||
|
||
|
||
|
||
|
||
|
||
[Semantic Versioning 2.0.0]: https://semver.org |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
5b3b324
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@quite4work toolchain switched to the same workflow as with Haraka and GitLab Builder Docker images.