bromite-buildtools/.github/workflows/build-images.yaml

69 lines
2.2 KiB
YAML
Raw Normal View History

2021-07-02 17:36:12 +05:30
permissions:
actions: none
checks: none
contents: none
deployments: none
issues: none
packages: none
pull-requests: none
repository-projects: none
security-events: none
statuses: none
on:
push:
tags:
- 'v*'
name: Builds and pushes tagged image to DockerHub
jobs:
generate_build_deps:
name: Generate Build Deps
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: docker/setup-buildx-action@v1
- uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Find VERSION
run: echo "VERSION=${GITHUB_REF/refs\/tags\/v/}" >> $GITHUB_ENV
- name: Docker Build and Push
uses: docker/build-push-action@v2
with:
context: ./images/build-deps
push: true
build-args: VERSION=${{ env.VERSION }}
2021-07-02 17:36:12 +05:30
tags: |
uazo/build-deps:${{ env.VERSION }}
generate_chromium_src:
name: Generate Chromium Sources
2021-07-02 18:16:10 +05:30
needs: generate_build_deps
2021-07-02 17:36:12 +05:30
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: docker/setup-buildx-action@v1
- uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Reclaiming disk space on / by removing dotnet/android/ghc
run: |
sudo rm -rf /usr/share/dotnet
sudo rm -rf /usr/local/lib/android
sudo rm -rf /opt/ghc
sudo apt-get remove google-cloud-sdk azure-cli ghc-9.0.1 ghc-8.10.4 hhvm google-chrome-stable firefox mysql-server-core-8.0 moby-engine mono-devel mongodb-org-server podman moby-cli moby-containerd mongodb-org-mongos powershell dotnet-runtime-3.1 dotnet-runtime-5.0 dotnet-sdk-3.1 dotnet-sdk-5.0
sudo apt-get autoremove
2021-07-02 17:36:12 +05:30
- name: Find VERSION
run: echo "VERSION=${GITHUB_REF/refs\/tags\/v/}" >> $GITHUB_ENV
- name: Docker Build and Push
uses: docker/build-push-action@v2
with:
context: ./images/chr-source
push: true
build-args: VERSION=${{ env.VERSION }}
2021-07-02 17:36:12 +05:30
tags: |
uazo/chromium:${{ env.VERSION }}