Skip to content

Update new-tag.yml

Update new-tag.yml #55

Workflow file for this run

name: Docker Image CI
on:
push:
branches: [ "main", "develop" ]
pull_request:
branches: [ "main", "develop" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set datetime variable
id: vars
run: echo "DATETIME=$(date +%s)" >> $GITHUB_ENV
- name: Build the Docker image
run: docker build . --file Dockerfile --tag sentra:${{ env.DATETIME }}
- name: Test the Docker image
run: docker run --rm sentra:${{ env.DATETIME }} --help