Add git to 10-build-tools module (#1) #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Docker Image CI | |
on: | |
push: | |
branches: [ "main" ] | |
env: | |
IMAGE_REGISTRY: ghcr.io/vanilla-os | |
REGISTRY_USER: ${{ github.actor }} | |
REGISTRY_PASSWORD: ${{ secrets.GITHUB_TOKEN }} | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Vib | |
run: | | |
wget https://github.com/Vanilla-OS/Vib/releases/download/v0.2.9/vib | |
chmod +x vib | |
./vib build recipe.yml | |
- name: Build the Docker image | |
run: docker image build -f Containerfile --tag vso:${{ github.ref_name }} . | |
# Push the image to GHCR (Image Registry) | |
- name: Push To GHCR | |
uses: redhat-actions/[email protected] | |
with: | |
registry: ${{ env.IMAGE_REGISTRY }} | |
image: dev | |
tags: ${{ github.ref_name }} | |
username: ${{ env.REGISTRY_USER }} | |
password: ${{ env.REGISTRY_PASSWORD }} | |
extra-args: | | |
--disable-content-trust | |
# - name: Push To Registry | |
# uses: redhat-actions/[email protected] | |
# with: | |
# image: vanillaos/dev | |
# tags: ${{ github.ref_name }} | |
# registry: ${{ secrets.NEXUS_REGISTRY }} | |
# username: ${{ secrets.NEXUS_USER }} | |
# password: ${{ secrets.NEXUS_PSW }} | |
# tls-verify: false |