-
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (30 loc) · 926 Bytes
/
test.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
name: "Test"
on:
push:
paths:
- 'Dockerfile'
pull_request:
workflow_dispatch:
jobs:
test:
name: Build container image
# https://github.com/actions/runner-images/blob/main/images/ubuntu/Ubuntu2404-Readme.md
runs-on: ubuntu-24.04
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4
# Login
# https://github.com/marketplace/actions/docker-login
- name: Login to GitHub container registry 🏭
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build 🧪
run: |
podman build . \
--network "slirp4netns" \
--platform "linux/amd64" \
--tag "ghcr.io/cyclenerd/cloud-tools-container:test" && \
podman push "ghcr.io/cyclenerd/cloud-tools-container:test"