Skip to content

Commit

Permalink
feat(bats): construction de l'image via GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
pomverte committed Dec 26, 2023
1 parent d5fac11 commit 7f41b9c
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 1 deletion.
40 changes: 40 additions & 0 deletions .github/workflows/bats.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
---
name: Build bats docker image
run-name: ${{ github.actor }} is flying to infinity and beyond 🚀

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}/bats
IMAGE_TAG: v1.10.0-curl

jobs:
build-and-push-docker-image:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
id-token: write

steps:
- name: Checkout repository
uses: actions/[email protected]

- name: Log into registry ${{ env.REGISTRY }}
uses: docker/[email protected]
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push Docker image
uses: docker/[email protected]
with:
context: bats
push: false
tags: ${{ env.IMAGE_TAG }}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
# Formation-DKADM
# Docker images
3 changes: 3 additions & 0 deletions bats/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
FROM bats/bats:v1.10.0

RUN apk add --no-cache curl
5 changes: 5 additions & 0 deletions bats/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# BATS

## Pourquoi

L'image précédemment utilisée `dduportal/bats:0.4.0` n'est plus disponible sur Docker Hub.

0 comments on commit 7f41b9c

Please sign in to comment.