Compare commits
5 Commits
main
...
wip-workfl
| Author | SHA1 | Date | |
|---|---|---|---|
| ea1d7e218f | |||
| 8a003d0168 | |||
| f091ea5af4 | |||
| 7caa38d672 | |||
| d500ac45ed |
26
.gitea/workflows/main.yaml
Normal file
26
.gitea/workflows/main.yaml
Normal file
@@ -0,0 +1,26 @@
|
||||
name: Docker build and push
|
||||
|
||||
on:
|
||||
push:
|
||||
|
||||
env:
|
||||
AUTH_TOKEN: ${{ secrets.AUTH_TOKEN }}
|
||||
|
||||
jobs:
|
||||
terraform:
|
||||
runs-on: ubuntu-dind-noble
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Docker login
|
||||
run: |
|
||||
echo "${AUTH_TOKEN}" | docker login gitea.dotty.fr -u gitea --password-stdin
|
||||
|
||||
- name: Docker build
|
||||
run: |
|
||||
docker build . -t gitea.dotty.fr/dotty/freebox_cert_update/freebox_cert_update:latest
|
||||
|
||||
- name: Docker push
|
||||
run: |
|
||||
docker push gitea.dotty.fr/dotty/freebox_cert_update/freebox_cert_update:latest
|
||||
@@ -1,23 +0,0 @@
|
||||
name: Docker build and push
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "main"
|
||||
|
||||
env:
|
||||
TOKEN: ${{ secrets.GRANT_ALL }}
|
||||
|
||||
jobs:
|
||||
terraform:
|
||||
runs-on: ubuntu-dind-noble
|
||||
steps:
|
||||
# - name: Checkout code
|
||||
# uses: actions/checkout@v4
|
||||
|
||||
- name: ouais
|
||||
run: |
|
||||
docker info
|
||||
docker ps
|
||||
cat ~/.docker/config.json
|
||||
|
||||
@@ -1,37 +0,0 @@
|
||||
name: Terraform plan
|
||||
|
||||
on:
|
||||
push:
|
||||
branches-ignore:
|
||||
- "main"
|
||||
|
||||
env:
|
||||
TF_HTTP_USERNAME: ${{ secrets.TF_HTTP_USERNAME }}
|
||||
TF_HTTP_PASSWORD: ${{ secrets.TF_HTTP_PASSWORD }}
|
||||
OVH_ENDPOINT: ${{ vars.OVH_ENDPOINT }}
|
||||
OVH_APPLICATION_KEY: ${{ secrets.OVH_APPLICATION_KEY }}
|
||||
OVH_APPLICATION_SECRET: ${{ secrets.OVH_APPLICATION_SECRET }}
|
||||
OVH_CONSUMER_KEY: ${{ secrets.OVH_CONSUMER_KEY }}
|
||||
|
||||
jobs:
|
||||
terraform:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Download latest terraform version
|
||||
run: |
|
||||
TFV=$(curl -s https://checkpoint-api.hashicorp.com/v1/check/terraform | jq -r -M '.current_version')
|
||||
curl -JOL "https://releases.hashicorp.com/terraform/${TFV}/terraform_${TFV}_linux_amd64.zip"
|
||||
unzip "terraform_${TFV}_linux_amd64.zip"
|
||||
cp terraform /usr/bin/
|
||||
chmod +x /usr/bin/terraform
|
||||
|
||||
- name: Terraform Init & Format
|
||||
run: |
|
||||
terraform init
|
||||
terraform fmt -check -recursive
|
||||
|
||||
- name: Terraform Plan
|
||||
run: terraform plan -out=tfplan
|
||||
Reference in New Issue
Block a user