-
Notifications
You must be signed in to change notification settings - Fork 3
53 lines (44 loc) · 1.46 KB
/
Copy pathdocker.yml
File metadata and controls
53 lines (44 loc) · 1.46 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
name: 🚢 W++ Docker Build, Push & Readme Sync
on:
release:
types: [published]
workflow_dispatch:
jobs:
build-and-push:
name: 🛠️ Build & Push Docker Image
runs-on: ubuntu-latest
steps:
- name: 📥 Checkout source
uses: actions/checkout@v4
- name: 🐳 Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: 🔐 Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: 🔧 Build and push Docker image
uses: docker/build-push-action@v5
with:
context: ./Docker
file: ./Docker/Dockerfile
push: true
platforms: linux/amd64
tags: |
sinistermage/wpp:latest
sinistermage/wpp:${{ github.event.release.tag_name || 'manual' }}
update-readme:
name: 📝 Update Docker Hub README
runs-on: ubuntu-latest
needs: build-and-push
steps:
- name: 📥 Checkout source
uses: actions/checkout@v4
- name: 🐳 Push README to Docker Hub
uses: peter-evans/dockerhub-description@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
repository: sinistermage/wpp
readme-filepath: ./Docker/README.md
short-description: "The W++ scripting language (CLI) in a Docker container"