build(deps): bump test/bats from 190c7c9
to 89a7fae
#82
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: Deploy Test | |
on: | |
push: | |
branches: [ main ] | |
paths: | |
- test/Dockerfile | |
- .github/workflows/deploy-test.yml | |
workflow_dispatch: | |
env: | |
REGISTRY: ghcr.io | |
permissions: | |
contents: read | |
jobs: | |
push_to_registry: | |
name: Deploy Docker Image - Test | |
runs-on: ubuntu-latest | |
permissions: | |
deployments: write | |
packages: write | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }}-${{ matrix.images.dockerfile }} | |
cancel-in-progress: true | |
strategy: | |
fail-fast: false | |
matrix: | |
images: | |
- dockerfile: test/Dockerfile | |
tag: test | |
deployment-environment-identifier: Test | |
timeout-minutes: 60 | |
steps: | |
- name: Repository checkout | |
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 | |
- name: Get current date | |
run: | | |
echo "Appending the build date contents to GITHUB_ENV..." | |
echo "BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ')" >> "${GITHUB_ENV}" | |
- name: Set up Docker | |
uses: docker/setup-buildx-action@988b5a0280414f521da01fcc63a27aeeb4b104db # v3.6.1 | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0 | |
with: | |
registry: ${{ env.REGISTRY }} | |
username: ${{ github.repository_owner }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Start deployment | |
uses: bobheadxi/deployments@648679e8e4915b27893bd7dbc35cb504dc915bc8 # v1.5.0 | |
id: deployment | |
with: | |
step: start | |
token: ${{ secrets.GITHUB_TOKEN }} | |
env: ${{ matrix.images.deployment-environment-identifier }} | |
- name: Build and Push Container | |
uses: docker/build-push-action@4f58ea79222b3b9dc2c8bbdd6debcef730109a75 # v6.9.0 | |
with: | |
context: . | |
file: ${{ matrix.images.dockerfile }} | |
build-args: | | |
BUILD_DATE=${{ env.BUILD_DATE }} | |
BUILD_REVISION=${{ github.sha }} | |
BUILD_VERSION=${{ github.sha }} | |
load: false | |
push: true | |
tags: | | |
${{ env.REGISTRY }}/${{ github.repository }}/${{ matrix.images.tag }}:latest | |
- name: Update deployment status | |
uses: bobheadxi/deployments@648679e8e4915b27893bd7dbc35cb504dc915bc8 # v1.5.0 | |
if: always() | |
with: | |
step: finish | |
token: ${{ secrets.GITHUB_TOKEN }} | |
status: ${{ job.status }} | |
deployment_id: ${{ steps.deployment.outputs.deployment_id }} | |
env: ${{ steps.deployment.outputs.env }} | |
env_url: https://github.com/${{ github.repository }} |