-
Notifications
You must be signed in to change notification settings - Fork 7
52 lines (43 loc) · 1.42 KB
/
docker-tqci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Docker Image TQ CI
on:
# push:
# branches: [ "master" ]
pull_request:
branches: [ "master" ]
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@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
with:
images: ${{ secrets.DOCKER_USERNAME }}/clamav-alpine:latest
- name: Extract metadata (tags, labels) for Docker
id: meta-edge
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
with:
images: ${{ secrets.DOCKER_USERNAME }}/clamav-alpine:edge
- name: Push it - Latest
uses: docker/build-push-action@v5.3.0
with:
context: .
file: ./Dockerfile
push: true
tags: ${{ secrets.DOCKER_USERNAME }}/clamav-alpine:latest
- name: Push it - Edge
uses: docker/build-push-action@v5.3.0
with:
context: .
file: ./Dockerfile-edge.dockerfile
push: true
tags: ${{ secrets.DOCKER_USERNAME }}/clamav-alpine:edge