Skip to content

update actions

update actions #5

Workflow file for this run

name: Docker Image CI
on:
push:
branches: [ "master" ]
env:
IMAGE_NAME: "mparvin/sublist3r:latest"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build the Docker image
run: docker build . --file Dockerfile --tag ${{ env.IMAGE_NAME }}
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v2
with:
push: true
tags: ${{ env.IMAGE_NAME }}