mirror of
https://github.com/factoriotools/factorio-docker.git
synced 2025-01-12 19:27:11 +01:00
Use secrets properly
This commit is contained in:
parent
2856c1cf76
commit
a10642d3eb
4
.github/workflows/docker-description.yml
vendored
4
.github/workflows/docker-description.yml
vendored
@ -13,6 +13,6 @@ jobs:
|
|||||||
- name: Docker Hub Description
|
- name: Docker Hub Description
|
||||||
uses: peter-evans/dockerhub-description@v2.4.1
|
uses: peter-evans/dockerhub-description@v2.4.1
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
password: ${{ secrets.DOCKERHUB_PASSWORD }}
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
repository: peterevans/dockerhub-description
|
repository: peterevans/dockerhub-description
|
||||||
|
6
.github/workflows/docker.yml
vendored
6
.github/workflows/docker.yml
vendored
@ -16,6 +16,8 @@ jobs:
|
|||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
- name: build
|
- name: build
|
||||||
env:
|
env:
|
||||||
|
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
|
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
|
||||||
VERSION_SHORT: ${{ matrix.version }}
|
VERSION_SHORT: ${{ matrix.version }}
|
||||||
run: |
|
run: |
|
||||||
./build.sh ${{ matrix.version }}
|
./build.sh ${{ matrix.version }}
|
||||||
@ -27,6 +29,8 @@ jobs:
|
|||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
- name: build
|
- name: build
|
||||||
env:
|
env:
|
||||||
|
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
|
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
|
||||||
EXTRA_TAG: stable
|
EXTRA_TAG: stable
|
||||||
VERSION_SHORT: 1.0
|
VERSION_SHORT: 1.0
|
||||||
run: |
|
run: |
|
||||||
@ -39,6 +43,8 @@ jobs:
|
|||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
- name: build
|
- name: build
|
||||||
env:
|
env:
|
||||||
|
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
|
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
|
||||||
EXTRA_TAG: latest
|
EXTRA_TAG: latest
|
||||||
VERSION_SHORT: 1.1
|
VERSION_SHORT: 1.1
|
||||||
run: |
|
run: |
|
||||||
|
2
build.sh
2
build.sh
@ -50,7 +50,7 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Travis gets rate limited by Docker HUB.
|
# Travis gets rate limited by Docker HUB.
|
||||||
if [[ ${CI:-} == true && -n $DOCKER_PASSWORD && -n $DOCKER_USERNAME ]]; then
|
if [[ ${CI:-} == true && -n ${DOCKER_PASSWORD:-} && -n ${DOCKER_USERNAME:-} ]]; then
|
||||||
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
|
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user