Create deploy-image.yml

This commit is contained in:
Amir Pourmand 2022-04-16 19:07:48 +04:30 committed by GitHub
parent 2b573263ce
commit d73c4be89c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

33
.github/workflows/deploy-image.yml vendored Normal file
View file

@ -0,0 +1,33 @@
name: Docker Image CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Buildx
uses: docker/setup-buildx-action@v1
- name: Login
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push
uses: docker/build-push-action@v2
with:
context: .
push: true
file: {context}/publish/Dockerfile
tags: amirpourmand/foam-template:latest