2024-05-01 15:15:25 +00:00
|
|
|
name: build-container-image
|
2024-05-01 16:18:49 +00:00
|
|
|
permissions:
|
|
|
|
packages: write
|
2024-05-01 15:15:25 +00:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
docker:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2024-05-01 16:11:23 +00:00
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
|
|
|
env
|
2024-05-01 15:15:25 +00:00
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up QEMU
|
|
|
|
uses: docker/setup-qemu-action@v3
|
|
|
|
- name: Set up Docker Buildx
|
|
|
|
uses: docker/setup-buildx-action@v3
|
|
|
|
- name: Login to Docker Hub
|
|
|
|
uses: docker/login-action@v3
|
|
|
|
with:
|
|
|
|
registry: forge.k3s.fr
|
2024-05-01 16:15:34 +00:00
|
|
|
username: ${{ github.actor }}
|
|
|
|
password: ${{ github.token }}
|
2024-05-01 15:15:25 +00:00
|
|
|
- name: Build and push
|
|
|
|
uses: docker/build-push-action@v5
|
|
|
|
with:
|
|
|
|
context: .
|
|
|
|
push: true
|
2024-05-01 15:59:42 +00:00
|
|
|
tags: forge.k3s.fr/pocs/testhello:latest
|