Skip to content

Commit

Permalink
Added dockerimage-flashplugin.yml.
Browse files Browse the repository at this point in the history
Added dockerimage-flashplugin.yml to build flashplugin-enabled PaleMoon on demand.
  • Loading branch information
vasilev authored Jun 2, 2020
1 parent b13e798 commit 54bdeea
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/dockerimage-flashplugin.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: _Manually_ build Docker image for Pale Moon browser with Flash plugin

on:
repository_dispatch:
types: ['build-with-flashplugin']

jobs:
build-and-push:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Build the Docker image
run: docker build . --file Dockerfile.flashplugin --tag vasilev/palemoon
- name: Log into registry
run: |
echo "${{ secrets.DOCKERHUB_PASSWORD }}" | docker login -u ${{ secrets.DOCKERHUB_USERNAME }} --password-stdin
- name: Push image
run: |
# Strip git ref prefix from version
VERSION=$(echo "${{ github.ref }}" | sed -e 's,.*/\(.*\),\1,')
# Strip "v" prefix from tag name
[[ "${{ github.ref }}" == "refs/tags/"* ]] && VERSION=$(echo $VERSION | sed -e 's/^v//')
echo VERSION=$VERSION
docker tag vasilev/palemoon vasilev/palemoon:$VERSION-flashplugin
docker push vasilev/palemoon:$VERSION-flashplugin

0 comments on commit 54bdeea

Please sign in to comment.