Skip to content

update: chrome_119, firefox_119 (#10) #6

update: chrome_119, firefox_119 (#10)

update: chrome_119, firefox_119 (#10) #6

Workflow file for this run

name: Build and Push Image
on:
push:
branches:
- master
paths:
# '*' matches any character except '/'
- 'base-chrome/*'
- '.github/workflows/*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Docker login
env:
DOCKER_HUB_USERNAME: ${{ secrets. DOCKER_HUB_USERNAME }}
DOCKER_HUB_PASSWORD: ${{ secrets. DOCKER_HUB_PASSWORD }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
echo $DOCKER_HUB_PASSWORD | docker login --username $DOCKER_HUB_USERNAME --password-stdin
echo $GITHUB_TOKEN | docker login docker.pkg.github.com --username $GITHUB_ACTOR --password-stdin
- name: Build & Push Image
run: |
cd base-chrome
IMAGE_NAME=ringcentral/chrome-vnc
Chrome_VERSION="chrome$(awk -F '[=.]' '/ARG CHROME_VERSION/ {print $2}' Dockerfile.vnc.chrome)"
Firefox_VERSION="firefox$(awk -F '[=.]' '/ARG FIREFOX_VERSION/ {print $2}' Dockerfile.vnc.chrome)"
docker build -t ${IMAGE_NAME} -f Dockerfile.vnc.chrome .
docker tag "${IMAGE_NAME}" "${IMAGE_NAME}:${Chrome_VERSION}-${Firefox_VERSION}"
docker tag "${IMAGE_NAME}" "${IMAGE_NAME}:latest"
docker push "${IMAGE_NAME}:${Chrome_VERSION}-${Firefox_VERSION}"
docker push "${IMAGE_NAME}:latest"