Skip to content

Commit 178ac4c

Browse files
committed
Generate image
1 parent a298fa6 commit 178ac4c

File tree

2 files changed

+52
-1
lines changed

2 files changed

+52
-1
lines changed

.github/workflows/push.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Release Image
2+
3+
on:
4+
push:
5+
branches:
6+
- 'debug'
7+
8+
env:
9+
IMAGE_NAME: ghcr.io/kitconcept/docker-stack-deploy
10+
11+
jobs:
12+
13+
release:
14+
runs-on: ubuntu-latest
15+
steps:
16+
17+
- name: Checkout
18+
uses: actions/checkout@v4
19+
20+
- name: Docker meta
21+
id: meta
22+
uses: docker/metadata-action@v5
23+
with:
24+
# list of Docker images to use as base name for tags
25+
images: |
26+
${{ env.IMAGE_NAME }}
27+
# generate Docker tags based on the following events/attributes
28+
tags: |
29+
type=raw,value=debug
30+
31+
- name: Set up QEMU
32+
uses: docker/setup-qemu-action@v3
33+
34+
- name: Set up Docker Buildx
35+
uses: docker/setup-buildx-action@v3
36+
37+
- name: Login to GitHub Container Registry
38+
uses: docker/login-action@v3
39+
with:
40+
registry: ghcr.io
41+
username: ${{ github.actor }}
42+
password: ${{ secrets.GITHUB_TOKEN }}
43+
44+
- name: Build and push
45+
uses: docker/build-push-action@v6
46+
with:
47+
platforms: linux/amd64
48+
context: .
49+
push: ${{ github.event_name != 'pull_request' }}
50+
tags: ${{ steps.meta.outputs.tags }}
51+
labels: ${{ steps.meta.outputs.labels }}

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ inputs:
5555
default: "0"
5656
runs:
5757
using: 'docker'
58-
image: 'docker://ghcr.io/kitconcept/docker-stack-deploy:latest'
58+
image: 'docker://ghcr.io/kitconcept/docker-stack-deploy:debug'
5959
env:
6060
REGISTRY: ${{ inputs.registry }}
6161
USERNAME: ${{ inputs.username }}

0 commit comments

Comments
 (0)