![dependabot[bot]](/assets/img/avatar_default.png)
Bumps [actions/checkout](https://github.com/actions/checkout) from 2.7.0 to 4.1.1. - [Release notes](https://github.com/actions/checkout/releases) - [Commits](https://github.com/actions/checkout/compare/v2.7.0...v4.1.1) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
40 أسطر
883 B
YAML
40 أسطر
883 B
YAML
name: Docker Image CI
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches: [main]
|
|
paths:
|
|
- '!**'
|
|
- 'container-example/**'
|
|
pull_request:
|
|
branches: [main]
|
|
paths:
|
|
- '!**'
|
|
- 'container-example/**'
|
|
|
|
defaults:
|
|
run:
|
|
working-directory: containers-example
|
|
|
|
jobs:
|
|
build:
|
|
environment: docker
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4.1.1
|
|
- name: Login to Docker Hub
|
|
uses: docker/login-action@v3
|
|
with:
|
|
username: ${{ secrets.DOCKER_USERNAME }}
|
|
password: ${{ secrets.DOCKER_TOKEN }}
|
|
- name: Build and push
|
|
uses: docker/build-push-action@v5
|
|
with:
|
|
context: container-example
|
|
push: true
|
|
tags: |
|
|
${{ secrets.DOCKER_USERNAME }}/static-site:latest
|
|
${{ secrets.DOCKER_USERNAME }}/static-site:${{ github.sha }}
|