Update docker/build-push-action action to v6.12.0 #100
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: Docker Image TQ CI | |
on: | |
# push: | |
# branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out the repo | |
uses: actions/checkout@v4 | |
# - name: Build the Docker image | |
# run: docker build . --file Dockerfile --tag tquinnelly/clamav-alpine:latest | |
- name: Login to Docker Hub | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_TOKEN }} | |
- name: Extract metadata (tags, labels) for Docker | |
id: meta-latest | |
uses: docker/metadata-action@8e1d5461f02b7886d3c1a774bfbd873650445aa2 | |
with: | |
images: ${{ secrets.DOCKER_USERNAME }}/clamav-alpine:latest | |
- name: Extract metadata (tags, labels) for Docker | |
id: meta-edge | |
uses: docker/metadata-action@8e1d5461f02b7886d3c1a774bfbd873650445aa2 | |
with: | |
images: ${{ secrets.DOCKER_USERNAME }}/clamav-alpine:edge | |
- name: Push it - Latest | |
uses: docker/build-push-action@v6.12.0 | |
with: | |
context: . | |
file: ./Dockerfile | |
push: true | |
tags: ${{ secrets.DOCKER_USERNAME }}/clamav-alpine:latest | |
- name: Push it - Edge | |
uses: docker/build-push-action@v6.12.0 | |
with: | |
context: . | |
file: ./Dockerfile-edge.dockerfile | |
push: true | |
tags: ${{ secrets.DOCKER_USERNAME }}/clamav-alpine:edge | |