8000 Add Docker image releasing (ghcr.io/symfony-cli/symfony-cli) · symfony-cli/symfony-cli@6ac1b44 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6ac1b44

Browse files
shyimtucksaun
authored andcommitted
Add Docker image releasing (ghcr.io/symfony-cli/symfony-cli)
1 parent ace4129 commit 6ac1b44

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed

.github/workflows/releaser.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77
permissions:
88
contents: write
99
id-token: write
10+
packages: write
1011

1112
jobs:
1213
releaser:
@@ -18,6 +19,10 @@ jobs:
1819
uses: actions/checkout@v2
1920
with:
2021
fetch-depth: 0
22+
23+
- name: Login into Github Docker Registery
24+
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
25+
2126
-
2227
name: Set up Go
2328
uses: actions/setup-go@v2

.goreleaser.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,3 +113,12 @@ nfpms:
113113
- rpm
114114
recommends:
115115
- git
116+
117+
dockers:
118+
- image_templates:
119+
- "ghcr.io/symfony-cli/symfony-cli:{{ .Tag }}"
120+
- "ghcr.io/symfony-cli/symfony-cli:v{{ .Major }}"
121+
- "ghcr.io/symfony-cli/symfony-cli:v{{ .Major }}.{{ .Minor }}"
122+
- "ghcr.io/symfony-cli/symfony-cli:latest"
123+
build_flag_templates:
124+
- "--label=org.opencontainers.image.source=https://github.com/symfony-cli/symfony-cli"

Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
FROM scratch
2+
3+
COPY symfony /usr/local/bin/
4+
ENTRYPOINT ["/usr/local/bin/symfony"]

0 commit comments

Comments
 (0)
0