9bd6d9ce7a
## Issue Addressed Closes https://github.com/sigp/lighthouse/issues/3656 ## Proposed Changes * Replace `set-output` by `$GITHUB_OUTPUT` usage * Avoid rate-limits when installing `protoc` by making authenticated requests (continuation of https://github.com/sigp/lighthouse/pull/3621) * Upgrade all Ubuntu 18.04 usage to 22.04 (18.04 is end of life) * Upgrade macOS-latest to explicit macOS-12 to silence warning * Use `actions/checkout@v3` and `actions/cache@v3` to avoid deprecated NodeJS v12 ## Additional Info Can't silence the NodeJS warnings entirely due to https://github.com/sigp/lighthouse/issues/3705. Can fix that in future.
32 lines
1.1 KiB
YAML
32 lines
1.1 KiB
YAML
name: docker antithesis
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- unstable
|
|
|
|
env:
|
|
ANTITHESIS_PASSWORD: ${{ secrets.ANTITHESIS_PASSWORD }}
|
|
ANTITHESIS_USERNAME: ${{ secrets.ANTITHESIS_USERNAME }}
|
|
ANTITHESIS_SERVER: ${{ secrets.ANTITHESIS_SERVER }}
|
|
REPOSITORY: ${{ secrets.ANTITHESIS_REPOSITORY }}
|
|
IMAGE_NAME: lighthouse
|
|
TAG: libvoidstar
|
|
|
|
jobs:
|
|
build-docker:
|
|
runs-on: ubuntu-22.04
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Update Rust
|
|
run: rustup update stable
|
|
- name: Dockerhub login
|
|
run: |
|
|
echo "${ANTITHESIS_PASSWORD}" | docker login --username ${ANTITHESIS_USERNAME} https://${ANTITHESIS_SERVER} --password-stdin
|
|
- name: Build AMD64 dockerfile (with push)
|
|
run: |
|
|
docker build \
|
|
--tag ${ANTITHESIS_SERVER}/${REPOSITORY}/${IMAGE_NAME}:${TAG} \
|
|
--file ./testing/antithesis/Dockerfile.libvoidstar .
|
|
docker push ${ANTITHESIS_SERVER}/${REPOSITORY}/${IMAGE_NAME}:${TAG}
|