lower test2 #7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Docker Build & Publish | ||
# on: | ||
# push: | ||
# branches: | ||
# - main | ||
on: [push] | ||
# on: | ||
# push: | ||
# tags: | ||
# - '*' | ||
env: | ||
REGISTRY: opswat | ||
IMAGE_NAME: ${{ github.repository },,} | ||
Check failure on line 15 in .github/workflows/main.yml GitHub Actions / Docker Build & PublishInvalid workflow file
|
||
jobs: | ||
dockerbuild: | ||
runs-on: ubuntu-latest | ||
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.IMAGE_NAME }} | ||
- run: echo "imagename ${{ env.IMAGE_NAME }}" | ||
- run: echo "TAG ${{ github.ref_name }}" | ||
# - name: Build and push | ||
# uses: docker/build-push-action@v4 | ||
# with: | ||
# push: true | ||
# tags: ${{ github.ref_name }} | ||
# build-args: version=${{ github.ref_name }} |