Update docker-image.yml
This commit is contained in:
parent
358d81fc40
commit
44dce38946
1 changed files with 7 additions and 16 deletions
23
.github/workflows/docker-image.yml
vendored
23
.github/workflows/docker-image.yml
vendored
|
@ -5,6 +5,7 @@ on:
|
||||||
branches: [ "main" ]
|
branches: [ "main" ]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ "main" ]
|
branches: [ "main" ]
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
|
@ -14,20 +15,10 @@ jobs:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Build the Docker image
|
- name: Build and push Docker images
|
||||||
run: docker build . --file Dockerfile --tag xbeeant/oo-unlimit:$(date +%s)
|
uses: docker/build-push-action@v1
|
||||||
- name: Login to DockerHub
|
|
||||||
uses: docker/login-action@v2.0.0
|
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
password: ${{ secrets.DOCKER_TOKEN }}
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
- name: Build image and push to Docker Hub and GitHub Container Registry
|
repository: xbeeant/oo-unlimit
|
||||||
uses: docker/build-push-action@v3.0.0
|
tags: 7.1.1.23.$(date +%s)
|
||||||
with:
|
|
||||||
# relative path to the place where source code with Dockerfile is located
|
|
||||||
context: ./
|
|
||||||
# Note: tags has to be all lower-case
|
|
||||||
tags: |
|
|
||||||
xbeeant/devdocs:latest
|
|
||||||
# build on feature branches, push only on main branch
|
|
||||||
push: ${{ github.ref == 'refs/heads/main' }}
|
|
||||||
|
|
Loading…
Reference in a new issue