Skip to content

Instantly share code, notes, and snippets.

@ahmad-elbatanouni
Last active November 6, 2023 23:06
Show Gist options
  • Save ahmad-elbatanouni/e5833683f59052963d4119f853f29edd to your computer and use it in GitHub Desktop.
Save ahmad-elbatanouni/e5833683f59052963d4119f853f29edd to your computer and use it in GitHub Desktop.
name: Docker Image CI
on:
push:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
id: docker_build
uses: docker/build-push-action@v2
with:
push: true
tags: os2021/test:latest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment