Skip to content

Commit

Permalink
pipeline finalization
Browse files Browse the repository at this point in the history
  • Loading branch information
anikobartos committed Sep 8, 2023
1 parent 833847e commit bf82bba
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,26 +12,21 @@ env:
jobs:
dockerbuild:
runs-on: ubuntu-latest
if: github.event.repository.name == 'main'
steps:
- name: Check out repository code
uses: actions/checkout@v3

# - name: Login to Docker Hub
# uses: docker/login-action@v2
# with:
# username: ${{ secrets.DOCKERHUB_USER }}
# password: ${{ secrets.DOCKERHUB_PASS }}

# - name: Extract Docker metadata
# id: meta
# uses: docker/metadata-action@v4
# with:
# images: ${{ env.REGISTRY }}/${{ env.REPO_NAME }}
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USER }}
password: ${{ secrets.DOCKERHUB_PASS }}

- name: Build and push
uses: docker/build-push-action@v4
with:
context: .
push: false
push: true
tags: ${{ env.REGISTRY }}/${{ env.REPO_NAME }}:${{ github.ref_name }}
build-args: version=${{ github.ref_name }}

0 comments on commit bf82bba

Please sign in to comment.