chore(deps): bump docker/build-push-action from 6.3.0 to 6.4.1 in the github-actions-dependencies group #32
Workflow file for this run
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 push runner image | |
on: | |
push: | |
branches: | |
- "main" | |
paths: | |
- "docker/runner.Dockerfile" | |
- "docker/runner.Dockerfile.dockerignore" | |
- ".github/workflows/build-runner.yaml" | |
pull_request: | |
paths: | |
- "docker/runner.Dockerfile" | |
- "docker/runner.Dockerfile.dockerignore" | |
- ".github/workflows/build-runner.yaml" | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
push_to_registry: | |
name: Build and push runner image | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out the repo | |
uses: actions/checkout@v4 | |
- name: "🔧 Login to GitHub Container Registry" | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: "Copy requirements.txt" | |
run: cp requirements.txt docker | |
shell: bash | |
- name: Build and push Docker image | |
uses: docker/build-push-action@1ca370b3a9802c92e886402e0dd88098a2533b12 | |
with: | |
context: ./docker | |
file: ./docker/runner.Dockerfile | |
push: ${{ github.ref == 'refs/heads/main' }} | |
tags: ghcr.io/dfinity/dre/actions-runner:${{ github.sha }} |