fix: logic on naming url with secret #56
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: Build and Push Docker Image | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: Log in to Docker registry | |
run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login git.jabuxas.xyz -u ${{ secrets.DOCKER_USERNAME }} --password-stdin | |
- name: Build and push Docker image | |
run: | | |
docker build -t git.jabuxas.xyz/jabuxas/abyss:latest . | |
docker push git.jabuxas.xyz/jabuxas/abyss:latest | |
- name: Log out of Docker registry | |
run: docker logout git.jabuxas.xyz |