-
Notifications
You must be signed in to change notification settings - Fork 0
86 lines (79 loc) · 1.96 KB
/
Copy pathdockerfile.yaml
File metadata and controls
86 lines (79 loc) · 1.96 KB
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
name: Dockerfile Smoke
on:
pull_request:
branches:
- master
paths:
- .github/workflows/dockerfile.yaml
- .ansible-lint
- .dockerignore
- .yamllint
- Dockerfile
- ansible.cfg
- ansible/**
- cmd/**
- compose.yaml
- containers/**
- dotfiles/**
- go.mod
- go.sum
- internal/**
- packages/scripts/**
push:
branches:
- master
paths:
- .github/workflows/dockerfile.yaml
- .ansible-lint
- .dockerignore
- .yamllint
- Dockerfile
- ansible.cfg
- ansible/**
- cmd/**
- compose.yaml
- containers/**
- dotfiles/**
- go.mod
- go.sum
- internal/**
- packages/scripts/**
workflow_dispatch: null
concurrency:
group: "${{ github.workflow }}-${{ github.ref }}"
cancel-in-progress: true
permissions:
contents: read # needed to checkout repository contents
jobs:
smoke:
name: Build Smoke Image
runs-on: ubuntu-24.04
permissions:
contents: read # needed to checkout repository contents
steps:
- name: Checkout Repository
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false
- name: Install Build Tools
run: |
sudo apt-get update
sudo apt-get install -y podman
- name: Build Image
run: |
sudo podman build \
--pull=newer \
--platform linux/amd64 \
--build-arg TARGETPLATFORM=linux/amd64 \
--target dotfiles-test \
--tag dotfiles:fedora-test \
.
- name: Validate Image
run: |
sudo podman run --rm dotfiles:fedora-test sh -eu -c '
! command -v starship
! command -v zellij
ansible-playbook --version >/dev/null
ansible-lint --version >/dev/null
yamllint --version >/dev/null
'