-
Notifications
You must be signed in to change notification settings - Fork 7
42 lines (36 loc) · 1022 Bytes
/
container_upload.yml
File metadata and controls
42 lines (36 loc) · 1022 Bytes
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
name: Push containers to registries
on:
pull_request_target:
types: [closed]
paths:
- 'docker/Dockerfile'
- 'docker/entrypoint.sh'
jobs:
push_docker_containers:
runs-on: ubuntu-latest
strategy:
fail-fast: false
permissions:
contents: read
packages: write
steps:
- name: Checkout pull request branch
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Setup up docker buildx
uses: docker/setup-buildx-action@v4
- name: Log in to ghcr.io with docker
uses: docker/login-action@v4
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push docker containers
uses: docker/build-push-action@v7
with:
context: docker
push: true
tags: |
ghcr.io/statfungen/tmate-minimal:latest
outputs: type=image,compression=zstd,push=true