-
-
Notifications
You must be signed in to change notification settings - Fork 3
28 lines (28 loc) · 941 Bytes
/
container-publish.yml
File metadata and controls
28 lines (28 loc) · 941 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
name: Publishing image to GitHub Packages
on:
push:
branches: [ "android-15" ]
jobs:
build_push:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Build Image
id: build_image
uses: redhat-actions/buildah-build@7a95fa7ee0f02d552a32753e7414641a04307056 # v2.13
with:
image: ${{ github.repository }}
containerfiles: |
./Containerfile
oci: true
tags: |
${{ github.ref_name }}
- name: Push To ghcr.io
uses: redhat-actions/push-to-registry@5ed88d269cf581ea9ef6dd6806d01562096bee9c # v2.8
with:
image: ${{ steps.build_image.outputs.image }}
password: ${{ github.token }}
registry: ghcr.io
tags: ${{ steps.build_image.outputs.tags }}
username: ${{ github.actor }}