Bump actions/download-artifact from 2 to 4.1.7 in /.github/workflows #1454
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
name: Build and publish devel images | |
on: | |
push: | |
branches: | |
- 'v*.*.x' | |
pull_request: | |
branches: | |
- 'v*.*.x' | |
jobs: | |
main: | |
if: github.repository == 'bosagora/agora' | |
runs-on: ubuntu-latest | |
# https://github.com/actions/runner/issues/953#issuecomment-821537265 | |
env: | |
HAVE_DOCKERHUB_SECRET: ${{ secrets.DOCKERHUB_TOKEN != '' && secrets.DOCKERHUB_USERNAME != '' }} | |
steps: | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v1 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v1 | |
- name: Login to DockerHub | |
id: login | |
# Only login if the push is upstream (or the user setup those) | |
if: github.event_name == 'push' && env.HAVE_DOCKERHUB_SECRET | |
uses: docker/login-action@v1 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
# This step will checkout the source with all the submodules | |
- name: '[Agora] Build and push' | |
uses: docker/build-push-action@v2 | |
with: | |
push: ${{ steps.login.outcome == 'success' }} | |
tags: bosagora/agora:devel | |
build-args: | | |
AGORA_VERSION=${{ github.sha }} |